summaryrefslogtreecommitdiff
path: root/drivers/staging/rtlwifi/pci.h
diff options
context:
space:
mode:
authorColin Ian King <colin.king@canonical.com>2017-09-08 14:55:06 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2017-09-18 12:25:31 +0200
commite1bf28868ab0bfd1fc73dd8d5e642d88456c30e9 (patch)
treec56bed6261802dfc643ccbf3bab1f462d9f345a1 /drivers/staging/rtlwifi/pci.h
parenta3563b09f132661d447f69224ef65fdec02f5c61 (diff)
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: 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>
Diffstat (limited to 'drivers/staging/rtlwifi/pci.h')
0 files changed, 0 insertions, 0 deletions