aboutsummaryrefslogtreecommitdiffstats
path: root/tools/perf/scripts/python/failed-syscalls-by-pid.py
diff options
context:
space:
mode:
authorAndy Shevchenko <[email protected]>2021-06-08 14:42:37 +0000
committerGreg Kroah-Hartman <[email protected]>2021-06-09 12:40:48 +0000
commit7c3e8d9df265bd0bdf6e328174cdfba26eb22f1c (patch)
tree1922b3ae5ce8a097b22546dacfc2b35173b427d5 /tools/perf/scripts/python/failed-syscalls-by-pid.py
parentLinux 5.13-rc4 (diff)
downloadkernel-7c3e8d9df265bd0bdf6e328174cdfba26eb22f1c.tar.gz
kernel-7c3e8d9df265bd0bdf6e328174cdfba26eb22f1c.zip
serial: 8250_exar: Avoid NULL pointer dereference at ->exit()
It's possible that during ->exit() the private_data is NULL, for instance when there was no GPIO device instantiated. Due to this we may not dereference it. Add a respective check. Note, for now ->exit() only makes sense when GPIO device was instantiated, that's why we may use the check for entire function. Fixes: 81171e7d31a6 ("serial: 8250_exar: Constify the software nodes") Reported-by: Maxim Levitsky <[email protected]> Signed-off-by: Andy Shevchenko <[email protected]> Tested-by: Maxim Levitsky <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/failed-syscalls-by-pid.py')
0 files changed, 0 insertions, 0 deletions