commit | e261199872a232beb6541c7dc6af2af0de840a27 | [log] [tgz] |
---|---|---|
author | Yuval Mintz <Yuval.Mintz@qlogic.com> | Sun Aug 17 16:47:47 2014 +0300 |
committer | David S. Miller <davem@davemloft.net> | Fri Aug 22 12:31:16 2014 -0700 |
tree | ce7eeeb0770694a9c05e5f23c293b0e4fbb57032 | |
parent | 626041248d3fb5b2fca5c9af172f00fa3bb6dcfe [diff] |
bnx2x: Safe bnx2x_panic_dump() The bnx2x panic dump spills a lot of information from the driver's fastpath, but may be called while some of the fastpath is uninitialized. This patch verifies that pointers are already allocated before dereferencing them to prevent possible kernel panics. Signed-off-by: Yuval Mintz <Yuval.Mintz@qlogic.com> Signed-off-by: Ariel Elior <Ariel.Elior@qlogic.com> Signed-off-by: David S. Miller <davem@davemloft.net>