diff options
author | Lee Jones <lee.jones@linaro.org> | 2014-08-13 12:45:19 +0100 |
---|---|---|
committer | Lee Jones <lee.jones@linaro.org> | 2014-09-26 08:15:29 +0100 |
commit | 6ae61fbf38d0cd2aa922eb5e7241e9b0bfd7009d (patch) | |
tree | e1de3259793e640f29449c758dff029b551e4c7c /include | |
parent | 4001998a43f4791b6e6c06df563f5d5bb3fbe4fb (diff) | |
download | linux-stable-6ae61fbf38d0cd2aa922eb5e7241e9b0bfd7009d.tar.gz linux-stable-6ae61fbf38d0cd2aa922eb5e7241e9b0bfd7009d.tar.bz2 linux-stable-6ae61fbf38d0cd2aa922eb5e7241e9b0bfd7009d.zip |
misc: st_kim: Increase size of dev_name buffer to incorporate termination
Calling strncpy with a maximum size argument of 32 bytes on destination
array kim_gdata->dev_name of size 32 bytes might leave the destination
string unterminated.
Cc: gregkh@linuxfoundation.org
Signed-off-by: Lee Jones <lee.jones@linaro.org>
Diffstat (limited to 'include')
-rw-r--r-- | include/linux/ti_wilink_st.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/include/linux/ti_wilink_st.h b/include/linux/ti_wilink_st.h index 932b76392248..884d6263e962 100644 --- a/include/linux/ti_wilink_st.h +++ b/include/linux/ti_wilink_st.h @@ -268,7 +268,7 @@ struct kim_data_s { struct st_data_s *core_data; struct chip_version version; unsigned char ldisc_install; - unsigned char dev_name[UART_DEV_NAME_LEN]; + unsigned char dev_name[UART_DEV_NAME_LEN + 1]; unsigned char flow_cntrl; unsigned long baud_rate; }; |