]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitc185c0a066f7f63c67d7aaa3c852279be086f428
tree83130fdb8a3c609f1a74d295e867f420177bba03
parent6fa7c455805ebaf8eb6bb6aa2312701724bd3b7b
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