be2net: disable TX in be_close()
authorSathya Perla <sathya.perla@emulex.com>
Wed, 8 May 2013 02:05:50 +0000 (02:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 8 May 2013 18:59:48 +0000 (11:59 -0700)
commitfba8755911841f9c1d49792ebce32448446e4ce2
treea374f67a74fcf9be885df9ffb38fd4b4ea0544a1
parent3f5dffe61a2ed3bd5e02bce16488937d4a5e7c27
be2net: disable TX in be_close()

be_close() followed by be_clear() is called as a part of cleanup in the
EEH/AER flow.  This patch stops TX in be_close() before cleaning/freeing
up the TX queues in be_clear(). This prevents be_xmit() from being called
while TX queues no longer exist.

Signed-off-by: Sathya Perla <sathya.perla@emulex.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/emulex/benet/be_main.c