2
0
mirror of https://github.com/edk2-porting/linux-next.git synced 2024-12-16 09:13:55 +08:00
linux-next/drivers/staging/rtl8192e
Tuo Li 25ee7e89d4 staging: rtl8192e: rtl_core: Fix possible null-pointer dereference in _rtl92e_pci_disconnect()
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>
2021-08-11 09:43:44 +02:00
..
rtl8192e staging: rtl8192e: rtl_core: Fix possible null-pointer dereference in _rtl92e_pci_disconnect() 2021-08-11 09:43:44 +02:00
dot11d.c staging: rtl8192e: remove boilerplate license text 2019-03-18 07:06:03 +01:00
dot11d.h Staging: rtl8192e: Replace license text with SPDX identifier 2019-02-21 10:58:11 +01:00
Kconfig staging: rtl8192e: fix kconfig dependency on CRYPTO 2021-03-10 09:23:28 +01:00
Makefile
rtl819x_BA.h staging: rtl8192e: reformat ba_record struct 2021-03-10 09:25:28 +01:00
rtl819x_BAProc.c staging: rtl8192e: rename RxAdmittedBARecord to rx_admitted_ba_record in rx_ts_record struct 2021-03-10 09:25:32 +01:00
rtl819x_HT.h staging: rtl8192e: reformat bss_ht struct 2021-03-10 09:25:30 +01:00
rtl819x_HTProc.c staging: rtl8192e: replace comparison to NULL by bool 2021-05-10 11:19:34 +02:00
rtl819x_Qos.h staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
rtl819x_TS.h staging: rtl8192e: reformat rx_ts_record struct 2021-03-10 09:25:32 +01:00
rtl819x_TSProc.c staging: rtl8192e: remove unnecessary blank line before brace 2021-04-14 10:30:55 +02:00
rtllib_crypt_ccmp.c staging: rtl8192e: Avoid field-overflowing memcpy() 2021-08-10 12:09:32 +02:00
rtllib_crypt_tkip.c staging: rtl8192e: indent statement properly 2021-04-22 10:38:42 +02:00
rtllib_crypt_wep.c mm: remove kzfree() compatibility definition 2020-10-25 11:39:02 -07:00
rtllib_debug.h staging: rtl8192e: add proper SPDX identifiers on files that did not have them. 2019-04-03 11:10:17 +02:00
rtllib_module.c staging: rtl8192e: rtllib_module: Remove redundant memset 2019-06-20 14:39:15 +02:00
rtllib_rx.c staging: rtl8192e: Avoid field-overflowing memcpy() 2021-08-10 12:09:32 +02:00
rtllib_softmac_wx.c staging/rtl8192e: Remove all strcpy() uses 2021-07-27 15:20:56 +02:00
rtllib_softmac.c staging/rtl8192e: Remove all strcpy() uses 2021-07-27 15:20:56 +02:00
rtllib_tx.c staging: rtl8192e: Fix shadowed variable name 2021-05-25 18:23:32 +02:00
rtllib_wx.c staging: rtl8192e: remove unnecesasry ftrace-like logging 2021-05-10 11:19:34 +02:00
rtllib.h staging: rtl8192e: Remove duplicate declartion 2021-05-10 14:35:28 +02:00
TODO