]> git.hungrycats.org Git - linux/commit
[PATCH] fix SMP lockup in eepro100 with ethtool on unused
authorAndrew Morton <akpm@digeo.com>
Sat, 8 Mar 2003 11:28:30 +0000 (03:28 -0800)
committerJames Bottomley <jejb@raven.il.steeleye.com>
Sat, 8 Mar 2003 11:28:30 +0000 (03:28 -0800)
commit260a43815e0485891d42a6ac0f81d4f020467830
tree28e4de72cf0674602019f459c2e2e30521176e4c
parent29aaccfb3b906d5187f6b02f6c511b8477f220f6
[PATCH] fix SMP lockup in eepro100 with ethtool on unused

Patch from Jason Lunz <lunz@falooley.org>

When support for the GSET and SSET ethtool ioctls was added to eepro100.c in
2.4.20, the tx lock was overloaded to serialize their use.  Unfortunately,
this lock is only initialized in dev->open(), causing ethtool to deadlock the
machine when used on an unconfigured eepro100 interface.

The fix is to initialize the spinlock at probe time.
drivers/net/eepro100.c