ATM breakage introduced in 2.4.0
Subsystems (2)
PATCH 1/1 ATM breakage introduced in 2.4.0
Hi,
2.4.0 introduced serious breakage to LANE. It's impossible to do ifdown lec? ; ifup lec? because memory allocated by lec? is freed but unregister_netdev() is not called, so SIOCGIFFLAGS tells me ok, but SIOCSIFFLAGS tells me -ENODEV. No, rmmod lec ; insmod lec does not help. Patch follows
net/atm/lec.c renamed from net/atm/lec.c.orig +4 -1
@@ -858,8 +858,11 @@if (dev_lec[i] !=NULL ) { priv = (struct lec_priv *)dev_lec[i]->priv;#if defined(CONFIG_TR ) -unregister_trdev (dev_lec[i]); +if (priv->is_trdev) +unregister_trdev (dev_lec[i]); + else#endif +unregister_netdev (dev_lec[i]);kfree (dev_lec[i]); dev_lec[i] =NULL ; }
And it would be nice if I was able to build Fore 200e driver in 2.4.1 ;)
drivers/atm/Makefile renamed from drivers/atm/Makefile.orig +1 -1
@@ -46,7 +46,7 @@ endif endif -obj-$(CONFIG_ATM_FORE200E) += fore200e.o $(FORE200E_FW_OBJS) +obj-$(CONFIG_ATM_FORE200E) += fore_200e.o include $(TOPDIR)/Rules.make
Jan
Signature · 7 lines
Jan Rękorajski | ALL SUSPECTS ARE GUILTY. PERIOD! baggins<at>mimuw.edu.pl | OTHERWISE THEY WOULDN'T BE SUSPECTS, WOULD THEY? BOFH, MANIAC | -- TROOPS by Kevin Rubio - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to [email protected] Please read the FAQ at http://www.tux.org/lkml/