summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorMichael Chan <michael.chan@broadcom.com>2017-02-21 03:25:17 +0300
committerDavid S. Miller <davem@davemloft.net>2017-02-21 05:59:15 +0300
commitdaf1f1e7841138cb0e48d52c8573a5f064d8f495 (patch)
tree02f76b565b4e3fa80bee41bacc1da0c851e92684 /tools/perf/scripts/python/export-to-postgresql.py
parent4e00338a61998de3502d0428c4f71ffc69772316 (diff)
downloadlinux-daf1f1e7841138cb0e48d52c8573a5f064d8f495.tar.xz
bnxt_en: Fix NULL pointer dereference in a failure path during open.
If bnxt_hwrm_ring_free() is called during a failure path in bnxt_open(), it is possible that the completion rings have not been allocated yet. In that case, the completion doorbell has not been initialized, and calling bnxt_disable_int() will crash. Fix it by checking that the completion ring has been initialized before writing to the completion ring doorbell. Signed-off-by: Michael Chan <michael.chan@broadcom.com> 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