]> git.baikalelectronics.ru Git - kernel.git/commit
bnx2x: prevent crash in shutdown flow with CNIC
authorYuval Mintz <yuvalmin@broadcom.com>
Mon, 12 Aug 2013 23:25:03 +0000 (02:25 +0300)
committerDavid S. Miller <davem@davemloft.net>
Tue, 13 Aug 2013 23:04:28 +0000 (16:04 -0700)
commitd4379f607e596473c081e4b5969df57aa5f0447a
treef7d0be5404d61d13f26d76556e99b1e4fe0db538
parent7db4ce97a6955d63d646edbc5a557fa0b00e5e11
bnx2x: prevent crash in shutdown flow with CNIC

There might be a crash as during shutdown flow CNIC might try
to access resources already freed by bnx2x.
Change bnx2x_close() into dev_close() in __bnx2x_remove (shutdown flow)
to guarantee CNIC is notified of the device's change of status.

Signed-off-by: Yuval Mintz <yuvalmin@broadcom.com>
Signed-off-by: Dmitry Kravkov <dmitry@broadcom.com>
Signed-off-by: Ariel Elior <ariele@broadcom.com>
Signed-off-by: Eilon Greenstein <eilong@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/bnx2x/bnx2x_main.c