diff options
author | Michael Chan <[email protected]> | 2019-06-29 11:16:45 -0400 |
---|---|---|
committer | David S. Miller <[email protected]> | 2019-06-30 16:00:26 -0700 |
commit | d27e2ca1166aefd54d9c48fb6647dee8115a5dfc (patch) | |
tree | a7b44ae08f0a0bbe37d18de07a5f193150bf58ba /tools/perf/scripts/python/mem-phys-addr.py | |
parent | c20dc142dd7b2884b8570eeab323bcd4a84294fa (diff) |
bnxt_en: Fix ethtool selftest crash under error conditions.
After ethtool loopback packet tests, we re-open the nic for the next
IRQ test. If the open fails, we must not proceed with the IRQ test
or we will crash with NULL pointer dereference. Fix it by checking
the bnxt_open_nic() return code before proceeding.
Reported-by: Somasundaram Krishnasamy <[email protected]>
Fixes: 67fea463fd87 ("bnxt_en: Add interrupt test to ethtool -t selftest.")
Signed-off-by: Michael Chan <[email protected]>
Signed-off-by: David S. Miller <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/mem-phys-addr.py')
0 files changed, 0 insertions, 0 deletions