aboutsummaryrefslogtreecommitdiff
path: root/scripts/gdb/linux/lists.py
diff options
context:
space:
mode:
authorTuo Li <[email protected]>2021-08-05 08:38:53 -0700
committerKalle Valo <[email protected]>2021-10-11 09:26:10 +0300
commit4b6012a7830b813799a7faf40daa02a837e0fd5b (patch)
tree08b275ae72b354d198158384f9b20851b36b5e32 /scripts/gdb/linux/lists.py
parentec4363384c3f110561dc5ee2e59adee02dbd9f73 (diff)
ath: dfs_pattern_detector: Fix possible null-pointer dereference in channel_detector_create()
kzalloc() is used to allocate memory for cd->detectors, and if it fails, channel_detector_exit() behind the label fail will be called: channel_detector_exit(dpd, cd); In channel_detector_exit(), cd->detectors is dereferenced through: struct pri_detector *de = cd->detectors[i]; To fix this possible null-pointer dereference, check cd->detectors before the for loop to dereference cd->detectors. Reported-by: TOTE Robot <[email protected]> Signed-off-by: Tuo Li <[email protected]> Signed-off-by: Kalle Valo <[email protected]> Link: https://lore.kernel.org/r/[email protected]
Diffstat (limited to 'scripts/gdb/linux/lists.py')
0 files changed, 0 insertions, 0 deletions