linux/drivers/staging/rtl8723bs
Colin Ian King ec14121931 staging: rtl8723bs: avoid null pointer dereference on pmlmepriv
There is a check to see if pmlmepriv is null before vfree'ing
pmlmepriv->free_bss_buf hence implying pmlmepriv could potenially be
null. However, a previous call to rtw_free_mlme_priv_ie_data
can also dereference pmlmepriv, so move this call so that it is only
called if pmlmepriv non-null.

Detected by CoverityScan, CID#1077739 ("Dereference before null check")

Fixes: 554c0a3abf ("staging: Add rtl8723bs sdio wifi driver")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-09-22 11:00:58 +02:00
..
core staging: rtl8723bs: avoid null pointer dereference on pmlmepriv 2017-09-22 11:00:58 +02:00
hal staging: rtl8723bs: hal: remove cast to void pointer 2017-08-29 08:24:04 +02:00
include staging: rtl8723bs - remove asm includes 2017-06-25 16:31:21 +02:00
os_dep staging: rtl8723bs: add missing range check on id 2017-09-22 11:00:58 +02:00
Kconfig
Makefile
TODO