rt2x00: unterminated strlen of user data
authorOne Thousand Gnomes <gnomes@lxorguk.ukuu.org.uk>
Mon, 15 Feb 2016 19:04:56 +0000 (19:04 +0000)
committerKalle Valo <kvalo@codeaurora.org>
Mon, 7 Mar 2016 12:00:25 +0000 (14:00 +0200)
commit9cc3fdc86c6006bae878da6d2d14c1633064a12f
tree83130fdb8a3c609f1a74d295e867f420177bba03
parent7b5acd11a3ffec027abf4df2b30690a974873174
rt2x00: unterminated strlen of user data

The buffer needs to be zero terminated in case the user data is not.
Otherwise we run off the end of the buffer.

Signed-off-by: Alan Cox <alan@linux.intel.com>
Reviewed-by: Julian Calaby <julian.calaby@gmail.com>
Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
drivers/net/wireless/ralink/rt2x00/rt2x00debug.c