]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8712: Fix possible buffer overrun
authorYoung Xiao <YangX92@hotmail.com>
Wed, 28 Nov 2018 08:06:53 +0000 (08:06 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 5 Dec 2018 08:56:09 +0000 (09:56 +0100)
commit6ccaf20df28375ff6b0920ee31cec1a2917f7d2b
tree94bb39ecf88f66750e1f78776c1bf066d93186f5
parent8281968f24866ad2a69e5bec140b16e994837c14
staging: rtl8712: Fix possible buffer overrun

In commit ef8a579546c5 ("staging: r8712u: Fix possible buffer
overrun") we fix a potential off by one by making the limit smaller.
The better fix is to make the buffer larger.  This makes it match up
with the similar code in other drivers.

Fixes: ef8a579546c5 ("staging: r8712u: Fix possible buffer overrun")
Signed-off-by: Young Xiao <YangX92@hotmail.com>
Cc: stable <stable@vger.kernel.org>
Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8712/mlme_linux.c
drivers/staging/rtl8712/rtl871x_mlme.c