diff options
| author | Colin Ian King <[email protected]> | 2017-09-08 13:55:06 +0000 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2017-09-18 10:25:31 +0000 |
| commit | e1bf28868ab0bfd1fc73dd8d5e642d88456c30e9 (patch) | |
| tree | c56bed6261802dfc643ccbf3bab1f462d9f345a1 /drivers/iio/trigger/stm32-timer-trigger.c | |
| parent | staging: mt29f_spinand: Enable the read ECC before program the page (diff) | |
| download | kernel-e1bf28868ab0bfd1fc73dd8d5e642d88456c30e9.tar.gz kernel-e1bf28868ab0bfd1fc73dd8d5e642d88456c30e9.zip | |
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 <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/iio/trigger/stm32-timer-trigger.c')
0 files changed, 0 insertions, 0 deletions
