* [patch] d80211: fix multiple device ap support
@ 2006-09-05 18:50 David Kimdon
2006-09-21 19:26 ` Jiri Benc
0 siblings, 1 reply; 2+ messages in thread
From: David Kimdon @ 2006-09-05 18:50 UTC (permalink / raw)
To: netdev; +Cc: John W. Linville, Jiri Benc, David Kimdon
[-- Attachment #1: dev_alloc_name-retval.patch --]
[-- Type: text/plain, Size: 637 bytes --]
Another fix to the interpretation of dev_alloc_name() return value.
dev_alloc_name() returns the number of the unit assigned or a negative
errno code.
Signed-off-by: David Kimdon <david.kimdon@devicescape.com>
Index: linux-2.6.16/net/d80211/ieee80211_iface.c
===================================================================
--- linux-2.6.16.orig/net/d80211/ieee80211_iface.c
+++ linux-2.6.16/net/d80211/ieee80211_iface.c
@@ -122,7 +122,7 @@ int ieee80211_if_add_mgmt(struct net_dev
if (!ndev)
return -ENOMEM;
ret = dev_alloc_name(ndev, "wmgmt%d");
- if (ret)
+ if (ret < 0)
goto fail;
ndev->ieee80211_ptr = local;
--
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2006-09-21 19:26 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2006-09-05 18:50 [patch] d80211: fix multiple device ap support David Kimdon
2006-09-21 19:26 ` Jiri Benc
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).