[PATCH] skge: handle out of memory on ring changes
authorStephen Hemminger <shemminger@osdl.org>
Wed, 4 Jan 2006 23:52:28 +0000 (15:52 -0800)
committerChris Wright <chrisw@sous-sol.org>
Sun, 15 Jan 2006 06:15:27 +0000 (22:15 -0800)
commit187754cae94a299edaeefeba80ac6d87b22bc940
treeac4c7346e6dfcd88a2c1f99d4a017e92e44de22c
parent67e0d5c77ea0e0747b1c7bf7455ad274ae9af992
[PATCH] skge: handle out of memory on ring changes

Please consider this for 2.6.15.1; it fixes several cases where
the skge driver can get in a bad state and later crash; if an
admin operation that causes a restart fails from out of memory.
Such as changing the MTU or increasing the ring size.

The fixes involve checking the return value and doing necessary
unwinds. Or in some cases avoiding doing a full restart.

The same code is the netdev-2.6 tree for 2.6.16 but as separate pieces

Signed-off-by: Stephen Hemminger <shemminger@osdl.org>
Signed-off-by: Chris Wright <chrisw@sous-sol.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/net/skge.c