]> git.baikalelectronics.ru Git - kernel.git/commit
cnic: Fix ISCSI_KEVENT_IF_DOWN message handling.
authorMichael Chan <mchan@broadcom.com>
Mon, 27 Jul 2009 18:25:58 +0000 (11:25 -0700)
committerDavid S. Miller <davem@davemloft.net>
Mon, 27 Jul 2009 18:25:58 +0000 (11:25 -0700)
commit9d3ed464035a86305fff2ffe7e3bfa451d02342c
tree6bc0eba235e8a4cd3ada1627cffa2ca7c6e60d4d
parentb9e7c7ffcfc4846820c767bd01f435df18e9e863
cnic: Fix ISCSI_KEVENT_IF_DOWN message handling.

When a net device goes down or when the bnx2i driver is unloaded,
the code was not generating the ISCSI_KEVENT_IF_DOWN message
properly and this could cause the userspace driver to crash.

This is fixed by sending the message properly in the shutdown path.
cnic_uio_stop() is also added to send the message when bnx2i is
unregistering.

Signed-off-by: Michael Chan <mchan@broadcom.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/cnic.c