aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/failed-syscalls-by-pid.py
diff options
context:
space:
mode:
authorZhou Qingyang <[email protected]>2022-01-25 00:45:25 +0800
committerDamien Le Moal <[email protected]>2022-01-27 11:22:43 +0900
commit9b6d90e2085ca2ce72ef9ea78658bf270855e62e (patch)
treef79dd7bee1b66542dc25231a861607aa07846e1f /tools/perf/scripts/python/failed-syscalls-by-pid.py
parent0280e3c58f92b2fe0e8fbbdf8d386449168de4a8 (diff)
ata: pata_platform: Fix a NULL pointer dereference in __pata_platform_probe()
In __pata_platform_probe(), devm_kzalloc() is assigned to ap->ops and there is a dereference of it right after that, which could introduce a NULL pointer dereference bug. Fix this by adding a NULL check of ap->ops. This bug was found by a static analyzer. Builds with 'make allyesconfig' show no new warnings, and our static analyzer no longer warns about this code. Fixes: f3d5e4f18dba ("ata: pata_of_platform: Allow to use 16-bit wide data transfer") Signed-off-by: Zhou Qingyang <[email protected]> Signed-off-by: Damien Le Moal <[email protected]> Reviewed-by: Sergey Shtylyov <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions