diff options
author | Michal Schmidt <mschmidt@redhat.com> | 2007-06-29 15:33:41 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2007-07-10 14:11:29 -0400 |
commit | 1138c37b66c16a5c7b49389ae566a4d73d60c2aa (patch) | |
tree | 5434975d31386b85220ab0b6767e44f55b41f01a /drivers/net/eepro100.c | |
parent | 1c2b7db8c8c4212761fcb5190a4122afd5e02d58 (diff) |
[PATCH] airo: fix a race causing initialization failures
Matteo Croce reported Aironet initialization failures. They were caused by
a race in airo. airo finds a free interface name, then initializes the card
and finally registers the interface. Another device may get the same name
in the meantime.
The reason airo gets its name early is to use it in informative printks and
to name the resources it requests. The printks will be just fine without
the interface name and the resources can use the driver's name - that's
what other network drivers do anyway.
One of the talkative functions is setup_card(). It is called once before
registration and can be called later again. Let's have an empty dev->name
during the first call, so it doesn't print the ugly "airo(eth%d)" message.
Signed-off-by: Michal Schmidt <mschmidt@redhat.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/net/eepro100.c')
0 files changed, 0 insertions, 0 deletions