diff options
author | Sreenivasa Honnur <Sreenivasa.Honnur@neterion.com> | 2007-11-30 07:46:08 +0100 |
---|---|---|
committer | Jeff Garzik <jeff@garzik.org> | 2007-12-01 22:32:28 +0100 |
commit | 9f74ffdebf3f81cb69e6c90026c6cff89e57c262 (patch) | |
tree | e9d61113cd5d5431a4d69da6fa3510f548cc021e /drivers/net/fec.h | |
parent | Merge branch 'fixes-jgarzik' of git://git.kernel.org/pub/scm/linux/kernel/git... (diff) | |
download | linux-9f74ffdebf3f81cb69e6c90026c6cff89e57c262.tar.xz linux-9f74ffdebf3f81cb69e6c90026c6cff89e57c262.zip |
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 <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>
Diffstat (limited to 'drivers/net/fec.h')
0 files changed, 0 insertions, 0 deletions