]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8723bs: fix copy of overlapping memory
authorColin Ian King <colin.king@canonical.com>
Sun, 26 Jan 2020 22:05:49 +0000 (22:05 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 10 Feb 2020 16:49:11 +0000 (08:49 -0800)
commit2ca725ef20ef47f3bb61f9a4492742ce9cbf5087
treed33c979835a655f90b417390afc636e9c222ca50
parent6e485f61e80e197092c5b69108be072f51bdc52b
staging: rtl8723bs: fix copy of overlapping memory

Currently the rtw_sprintf prints the contents of thread_name
onto thread_name and this can lead to a potential copy of a
string over itself. Avoid this by printing the literal string RTWHALXT
instread of the contents of thread_name.

Addresses-Coverity: ("copy of overlapping memory")
Fixes: 84ed90a855bc ("staging: Add rtl8723bs sdio wifi driver")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Reviewed-by: Hans de Goede <hdegoede@redhat.com>
Link: https://lore.kernel.org/r/20200126220549.9849-1-colin.king@canonical.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8723bs/hal/rtl8723bs_xmit.c