alistair23-linux/drivers/staging/rtlwifi
Colin Ian King e1bf28868a staging: r8822be: fix null pointer dereferences with a null driver_adapter
The call to _rtl_dbg_trace via macro HALMAC_RT_TRACE will trigger a null
pointer deference on a null driver_adapter.  Fix this by assigning
driver_adapter earlier to halmac_adapter->driver_adapter before the tracing
call so that a non-null driver_adapter is passed instead.

I should have spotted these with an earlier patch I sent, but I overlooked
these in the rather large CoverityScan logs.

Detected by CoverityScan, CID#1454550, CID#1454554, CID#1454565,
CID#1454591, CID#1454598 ("Explicit null dereferenced")

Fixes: 938a0447f0 ("staging: r8822be: Add code for halmac sub-driver")
Signed-off-by: Colin Ian King <colin.king@canonical.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
2017-09-18 12:25:31 +02:00
..
btcoexist staging: rtlwifi: simplify logical operation 2017-08-23 16:27:07 -07:00
halmac staging: r8822be: fix null pointer dereferences with a null driver_adapter 2017-09-18 12:25:31 +02:00
phydm staging: r8822be: Add phydm mini driver 2017-08-20 11:13:12 -07:00
rtl8822be staging: r8822be: remove some dead code 2017-08-28 10:27:29 +02:00
base.c staging: rtlwifi: remove memset before memcpy 2017-08-29 08:24:03 +02:00
base.h
cam.c
cam.h
core.c
core.h
debug.c staging: rtlwifi: Improve debugging by using debugfs 2017-08-28 10:16:57 +02:00
debug.h
efuse.c
efuse.h
Kconfig staging: rtlwifi: add MAC80211 dependency 2017-08-23 16:29:09 -07:00
Makefile staging: r8822be: Add Makefiles and Kconfig for new driver 2017-08-20 11:13:12 -07:00
pci.c
pci.h
ps.c
ps.h
pwrseqcmd.h
rc.c
rc.h
regd.c
regd.h
stats.c
stats.h
TODO staging: rtlwifi: Reviewers fixes 2017-08-20 11:13:12 -07:00
wifi.h