diff options
author | Michael Chan <mchan@broadcom.com> | 2012-06-27 15:08:19 +0000 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2012-06-27 21:20:08 -0700 |
commit | a2028b2376a858cb68a7fcc129f6508f59b45381 (patch) | |
tree | 133b51113a4f2c9c9c741a1d21fd693477e7ddda /samples/seccomp | |
parent | c10237e077cef50e925f052e49f3b4fead9d71f9 (diff) | |
download | talos-obmc-linux-a2028b2376a858cb68a7fcc129f6508f59b45381.tar.gz talos-obmc-linux-a2028b2376a858cb68a7fcc129f6508f59b45381.zip |
cnic: Fix occasional NULL pointer dereference during reboot.
We register with bnx2x before we allocate ctx_tbl structure, so it is
possible for bnx2x to call cnic_ctl before the structure is allocated.
This can sometimes cause NULL pointer dereference of cp->ctx_tbl. We
fix this by adding simple checking for valid state before proceeding.
The cnic_ctl call is RCU protected so we don't have to deal with race
conditions.
Because of the additional checking, we need to finish the shutdown
before clearing the CNIC_UP flag.
Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'samples/seccomp')
0 files changed, 0 insertions, 0 deletions