diff options
author | Sankar Patchineelam <sankar.patchineelam@broadcom.com> | 2017-03-28 19:47:29 -0400 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2017-03-29 14:05:33 -0700 |
commit | 2247925f0942dc4e7c09b1cde45ca18461d94c5f (patch) | |
tree | c80b85f745a4ca6d83298f60ffe8ef6bbfb891b9 /tools/perf/scripts/python/syscall-counts.py | |
parent | e91793bb615cf6cdd59c0b6749fe173687bb0947 (diff) |
bnxt_en: Fix NULL pointer dereference in reopen failure path
Net device reset can fail when the h/w or f/w is in a bad state.
Subsequent netdevice open fails in bnxt_hwrm_stat_ctx_alloc().
The cleanup invokes bnxt_hwrm_resource_free() which inturn
calls bnxt_disable_int(). In this routine, the code segment
if (ring->fw_ring_id != INVALID_HW_RING_ID)
BNXT_CP_DB(cpr->cp_doorbell, cpr->cp_raw_cons);
results in NULL pointer dereference as cpr->cp_doorbell is not yet
initialized, and fw_ring_id is zero.
The fix is to initialize cpr fw_ring_id to INVALID_HW_RING_ID before
bnxt_init_chip() is invoked.
Signed-off-by: Sankar Patchineelam <sankar.patchineelam@broadcom.com>
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/syscall-counts.py')
0 files changed, 0 insertions, 0 deletions