]> git.baikalelectronics.ru Git - kernel.git/commit
staging: rtl8192u: Add null check in rtl8192_usb_initendpoints
authorDinghao Liu <dinghao.liu@zju.edu.cn>
Sat, 26 Dec 2020 08:02:56 +0000 (16:02 +0800)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 28 Dec 2020 14:11:18 +0000 (15:11 +0100)
commit67712c12eef11942818a38235b370f6ab532b40e
tree0f5b6ac3226f14968c68406bf001570f4bf2d59b
parent6b58eea3de43b32f75db72c77b0768795a55374b
staging: rtl8192u: Add null check in rtl8192_usb_initendpoints

There is an allocation for priv->rx_urb[16] has no null check,
which may lead to a null pointer dereference.

Signed-off-by: Dinghao Liu <dinghao.liu@zju.edu.cn>
Link: https://lore.kernel.org/r/20201226080258.6576-1-dinghao.liu@zju.edu.cn
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/rtl8192u/r8192U_core.c