Re: [PATCH 2.6.24 1/1]S2io: Fixed the case when the card initialization fails on mtu change

From
Jeff Garzik <hidden>
Date
2007-12-01 21:33:26
Reply to
Sreenivasa Honnur, 2007-11-30
Sreenivasa Honnur wrote:
quoted hunk ↗ jump to hunk
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 <redacted>
Signed-off-by: Sreenivasa Honnur <redacted>
Signed-off-by: Ramkrishna Vepa <redacted>
---
diff -Nurp patch_8/drivers/net/s2io.c patch_9/drivers/net/s2io.c
--- patch_8/drivers/net/s2io.c	2007-11-20 23:31:57.000000000 +0530
+++ patch_9/drivers/net/s2io.c	2007-11-20 23:13:24.000000000 +0530
@@ -84,7 +84,7 @@
 #include "s2io.h"
 #include "s2io-regs.h"
 
-#define DRV_VERSION "2.0.26.8"
+#define DRV_VERSION "2.0.26.9"
 
 /* S2io Driver name & version. */
 static char s2io_driver_name[] = "Neterion";
applied patch to 2.6.24-rc, except for the above chunk, which failed

Thread (2 messages) 2 messages, 2 authors, last reply 2007-12-01
Keyboard shortcuts
hback out one level
jnext message in thread / next series-diff position
kprevious message in thread / previous series-diff position
ldrill in
Escclose help / fold thread tree
?toggle this help