bnx2: Close device if MTU change or ring size change fails.
authorMichael Chan <mchan@broadcom.com>
Fri, 21 Aug 2009 16:20:45 +0000 (16:20 +0000)
committerDavid S. Miller <davem@davemloft.net>
Sun, 23 Aug 2009 00:48:47 +0000 (17:48 -0700)
commit6fefb65e78f098c09d0ab877b2c70421e4c84116
tree2b85b62679ee60f56fed3e86f96a91a33cbb25dd
parent3767546cc24de8f104e745d59a0a43a09d9267df
bnx2: Close device if MTU change or ring size change fails.

When unable to allocate memory for new MTU or new ring size, we need
to close the device to prevent it from crashing.

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