From: Sreenivasa Honnur Date: Fri, 30 Nov 2007 06:46:08 +0000 (-0500) Subject: S2io: Fixed the case when the card initialization fails on mtu change X-Git-Tag: v2.6.24-rc4~9^2~24 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=9f74ffdebf3f81cb69e6c90026c6cff89e57c262;p=pandora-kernel.git S2io: Fixed the case when the card initialization fails on mtu change 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 Signed-off-by: Sreenivasa Honnur Signed-off-by: Ramkrishna Vepa Signed-off-by: Jeff Garzik --- Reading git-diff-tree failed