OpenCloudOS-Kernel/drivers/staging/rtl8188eu
Colin Ian King 123c0aab00 staging: rtl8188eu: avoid a null dereference on pmlmepriv
There is a check on pmlmepriv before dereferencing it when
vfree'ing pmlmepriv->free_bss_buf however the previous call
to rtw_free_mlme_priv_ie_data deferences pmlmepriv causing
a null pointer deference if it is null.  Avoid this by also
calling rtw_free_mlme_priv_ie_data if the pointer is non-null.

Detected by CoverityScan, CID#1230262 ("Dereference before null check")
Fixes: 7b464c9fa5 ("staging: r8188eu: Add files for new driver - part 4")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-11-03 12:48:55 +01:00
..
core staging: rtl8188eu: avoid a null dereference on pmlmepriv 2017-11-03 12:48:55 +01:00
hal staging: rtl8188eu: usb_halinit: mark expected switch fall-through 2017-10-18 15:43:35 +02:00
include staging: rtl8188eu: use pr_cont() 2017-10-20 14:45:05 +02:00
os_dep staging: rtl8188eu: Revert 4 commits breaking ARP 2017-11-02 11:58:28 +01:00
Kconfig staging: rtl8188eu: force driver to be built as a module 2017-04-11 15:59:33 +02:00
Makefile Makefile: drop -D__CHECK_ENDIAN__ from cflags 2016-12-16 00:13:43 +02:00
TODO staging: rtl8*: fix my email address up 2016-02-11 19:33:46 -08:00