linux-stable/drivers/staging
Dan Carpenter 2e1ec01af2 staging: rtl8192e: Fix use after free in _rtl92e_pci_disconnect()
commit b535917c51 upstream.

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-12-01 09:23:28 +01:00
..
android
axis-fifo
board staging: board: Fix uninitialized spinlock when attaching genpd 2021-09-22 12:26:28 +02:00
clocking-wizard
comedi comedi: vmk80xx: fix bulk and interrupt message timeouts 2021-11-12 14:43:04 +01:00
emxx_udc staging: emxx_udc: fix loop in _nbu2ss_nuke() 2021-06-03 08:59:15 +02:00
exfat
fbtft staging/fbtft: Fix backlight 2021-12-01 09:23:28 +01:00
fieldbus
fsl-dpaa2
fwserial staging: fwserial: fix TIOCSSERIAL permission check 2021-05-14 09:44:11 +02:00
gasket
gdm724x staging: gdm724x: check for overflow in gdm_lte_netif_rx() 2021-07-14 16:53:44 +02:00
goldfish
greybus staging: greybus: uart: fix tty use after free 2021-09-30 10:09:21 +02:00
gs_fpgaboot
iio staging: iio: cdc: ad7746: avoid overwrite of num_channels 2021-06-03 08:59:04 +02:00
isdn
kpc2000
ks7010 staging: ks7010: select CRYPTO_HASH/CRYPTO_MICHAEL_MIC 2021-11-17 09:48:43 +01:00
media media: ipu3-imgu: VIDIOC_QUERYCAP: Fix bus_info 2021-11-17 09:48:30 +01:00
most staging: most: sound: add sanity check for function argument 2021-03-07 12:20:45 +01:00
mt7621-dma staging/mt7621-dma: mtk-hsdma.c->hsdma-mt7621.c 2021-03-04 10:26:46 +01:00
mt7621-dts staging: mt7621-dts: fix pci address for PCI memory range 2021-07-14 16:53:44 +02:00
mt7621-pci
mt7621-pci-phy
mt7621-pinctrl pinctrl: ralink: rt2880: avoid to error in calls is pin is already enabled 2021-06-23 14:41:27 +02:00
netlogic
nvec
octeon
octeon-usb
olpc_dcon
pi433
qlge
ralink-gdma
rtl8188eu staging: rtl8188eu: fix potential memory corruption in rtw_check_beacon_data() 2021-03-17 17:03:53 +01:00
rtl8192e staging: rtl8192e: Fix use after free in _rtl92e_pci_disconnect() 2021-12-01 09:23:28 +01:00
rtl8192u staging: rtl8192u: fix control-message timeouts 2021-11-12 14:43:04 +01:00
rtl8712 staging: r8712u: fix control-message timeout 2021-11-12 14:43:04 +01:00
rtl8723bs staging: rtl8723bs: Fix a resource leak in sd_int_dpc 2021-08-12 13:21:01 +02:00
rts5208 staging: rts5208: Fix get_ms_information() heap buffer size 2021-09-22 12:26:33 +02:00
sm750fb
speakup
unisys
uwb
vc04_services staging: bcm2835-audio: Replace unsafe strcpy() with strscpy() 2021-03-07 12:20:45 +01:00
vme
vt6655
vt6656
wilc1000 wilc1000: fix possible memory leak in cfg_scan_result() 2021-11-17 09:48:34 +01:00
wlan-ng
wusbcore
Kconfig
Makefile