Skip to contentSkip to conversation

d80211: fix multiple device ap support

PATCH Applied David Kimdon 2 participants 2 messages Sep 5, 2006 – Sep 21, 2006

Subsystems (2)
lore
Share & tools
lore
#0 lore raw

PATCH 1/1 d80211: fix multiple device ap support

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.

net/d80211/ieee80211_iface.c +1 -1
Index: 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;

--

Applied
#1 lore raw
Quoted 3 lines · David Kimdon

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.

Applied to my tree. Thanks for the patch!

Jiri

Signature · 2 lines
Jiri Benc
SUSE Labs