diff options
author | Karsten Graul <[email protected]> | 2022-04-08 17:10:34 +0200 |
---|---|---|
committer | Jakub Kicinski <[email protected]> | 2022-04-11 18:28:03 -0700 |
commit | d22f4f977236f97e01255a80bca2ea93a8094fc8 (patch) | |
tree | 44681c5acf227653aaf1a6dd1dae574c8f024b3f /tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py | |
parent | b1871fd48efc567650dbdc974e5a2342a03fe0d2 (diff) |
net/smc: Fix NULL pointer dereference in smc_pnet_find_ib()
dev_name() was called with dev.parent as argument but without to
NULL-check it before.
Solve this by checking the pointer before the call to dev_name().
Fixes: af5f60c7e3d5 ("net/smc: allow PCI IDs as ib device names in the pnet table")
Reported-by: [email protected]
Signed-off-by: Karsten Graul <[email protected]>
Signed-off-by: Jakub Kicinski <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util/lib/Perf/Trace/EventClass.py')
0 files changed, 0 insertions, 0 deletions