OpenCloudOS-Kernel/drivers/staging/rtl8192e
Dan Carpenter b535917c51 staging: rtl8192e: Fix use after free in _rtl92e_pci_disconnect()
The free_rtllib() function frees the "dev" pointer so there is use
after free on the next line.  Re-arrange things to avoid that.

Fixes: 66898177e7 ("staging: rtl8192e: Fix unload/reload problem")
Cc: stable <stable@vger.kernel.org>
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Link: https://lore.kernel.org/r/20211117072016.GA5237@kili
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2021-11-17 14:08:57 +01:00
..
rtl8192e staging: rtl8192e: Fix use after free in _rtl92e_pci_disconnect() 2021-11-17 14:08:57 +01:00
Kconfig staging: rtl8192e: fix kconfig dependency on CRYPTO 2021-03-10 09:23:28 +01:00
Makefile
TODO
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
rtl819x_BA.h staging: rtl8192e: reformat ba_record struct 2021-03-10 09:25:28 +01:00
rtl819x_BAProc.c staging: rtl8192e: remove unused variable ieee 2021-10-05 12:30:50 +02: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.h staging: rtl8192e: Remove duplicate declartion 2021-05-10 14:35:28 +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.c staging/rtl8192e: Remove all strcpy() uses 2021-07-27 15:20:56 +02:00
rtllib_softmac_wx.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