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: 938a0447f094 ("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>
|
||
|---|---|---|
| .. | ||
| btcoexist | ||
| halmac | ||
| phydm | ||
| rtl8822be | ||
| base.c | ||
| base.h | ||
| cam.c | ||
| cam.h | ||
| core.c | ||
| core.h | ||
| debug.c | ||
| debug.h | ||
| efuse.c | ||
| efuse.h | ||
| Kconfig | ||
| Makefile | ||
| pci.c | ||
| pci.h | ||
| ps.c | ||
| ps.h | ||
| pwrseqcmd.h | ||
| rc.c | ||
| rc.h | ||
| regd.c | ||
| regd.h | ||
| stats.c | ||
| stats.h | ||
| TODO | ||
| wifi.h | ||