# 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 
- List: netdev
- Page: https://ratatoskr.run/netdev/2007/12/10789224
- Thread: https://ratatoskr.run/netdev/2007/11/10789119/t.md

```text
Sreenivasa Honnur wrote:
> 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


```
