S2io: Fixed the case when the card initialization fails on mtu change
authorSreenivasa Honnur <Sreenivasa.Honnur@neterion.com>
Fri, 30 Nov 2007 06:46:08 +0000 (01:46 -0500)
committerJeff Garzik <jeff@garzik.org>
Sat, 1 Dec 2007 21:32:28 +0000 (16:32 -0500)
Fix the case when the card initialization fails on a mtu change and then
close is called (due to ifdown), which frees non existent rx buffers.
- Returning appropriate error codes in init_nic function.
- In s2io_close function s2io_card_down is called only when device is up.
- In s2io_change_mtu function return value of s2io_card_up function
  is checked and returned if it failed.

Signed-off-by: Surjit Reang <surjit.reang@neterion.com>
Signed-off-by: Sreenivasa Honnur <sreenivasa.honnur@neterion.com>
Signed-off-by: Ramkrishna Vepa <ram.vepa@neterion.com>
Signed-off-by: Jeff Garzik <jeff@garzik.org>

No differences found