aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/iio/trigger/stm32-timer-trigger.c
diff options
context:
space:
mode:
authorColin Ian King <[email protected]>2017-08-23 15:07:10 +0000
committerGreg Kroah-Hartman <[email protected]>2017-08-28 08:27:28 +0000
commit1919b0562bfcd383caf87a13c346d65ce6d519aa (patch)
treec0fff8894901223e5d7784820c504984d10fa573 /drivers/iio/trigger/stm32-timer-trigger.c
parentstaging: r8822be: fix memory leak of eeprom_map on error exit return (diff)
downloadkernel-1919b0562bfcd383caf87a13c346d65ce6d519aa.tar.gz
kernel-1919b0562bfcd383caf87a13c346d65ce6d519aa.zip
staging: r8822be: fix null pointer dereference with a null driver_adapter
The call to _rtl_dbg_trace via macro HALMAC_RT_TRACE will trigger a null pointer deference on the 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. Detected by CoverityScan, CID#1454613 ("Explicit null dereferenced") Fixes: 938a0447f094 ("staging: r8822be: Add code for halmac sub-driver") Signed-off-by: Colin Ian King <[email protected]> Acked-by: Larry Finger <[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