summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorKangjie Lu <kjlu@umn.edu>2018-12-26 09:31:08 +0300
committerDavid S. Miller <davem@davemloft.net>2018-12-28 03:26:55 +0300
commit92ee77d148bf06d8c52664be4d1b862583fd5c0e (patch)
tree1ce96be8770583d1dfd5201552733ea6493654fc /tools/perf/scripts/python/export-to-postgresql.py
parent46273cf7e009231d2b6bc10a926e82b8928a9fb2 (diff)
downloadlinux-92ee77d148bf06d8c52664be4d1b862583fd5c0e.tar.xz
net: marvell: fix a missing check of acpi_match_device
When acpi_match_device fails, its return value is NULL. Directly using the return value without a check may result in a NULL-pointer dereference. The fix checks if acpi_match_device fails, and if so, returns -EINVAL. Signed-off-by: Kangjie Lu <kjlu@umn.edu> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions