mirror of
https://github.com/edk2-porting/linux-next.git
synced 2024-12-16 09:13:55 +08:00
25ee7e89d4
The variable dev is checked in: if (dev) This indicates that it can be NULL. If so, a null-pointer dereference will occur: priv = rtllib_priv(dev); However, the value of priv is not used in the remaining part of this function. Thus the else-branch can be removed to fix this posible null-pointer dereference. Reported-by: TOTE Robot <oslab@tsinghua.edu.cn> Reviewed-by: Dan Carpenter <dan.carpenter@oracle.com> Signed-off-by: Tuo Li <islituo@gmail.com> Link: https://lore.kernel.org/r/20210811031135.4110-1-islituo@gmail.com Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> |
||
---|---|---|
.. | ||
rtl8192e | ||
dot11d.c | ||
dot11d.h | ||
Kconfig | ||
Makefile | ||
rtl819x_BA.h | ||
rtl819x_BAProc.c | ||
rtl819x_HT.h | ||
rtl819x_HTProc.c | ||
rtl819x_Qos.h | ||
rtl819x_TS.h | ||
rtl819x_TSProc.c | ||
rtllib_crypt_ccmp.c | ||
rtllib_crypt_tkip.c | ||
rtllib_crypt_wep.c | ||
rtllib_debug.h | ||
rtllib_module.c | ||
rtllib_rx.c | ||
rtllib_softmac_wx.c | ||
rtllib_softmac.c | ||
rtllib_tx.c | ||
rtllib_wx.c | ||
rtllib.h | ||
TODO |