d80211: fix multiple device ap support
Subsystems (2)
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.
Signed-off-by David Kimdon <[email protected]>
net/d80211/ieee80211_iface.c +1 -1
@@ -122,7 +122,7 @@ int ieee80211_if_add_mgmt(struct net_devif (!ndev)return -ENOMEM ; ret =dev_alloc_name (ndev,"wmgmt%d" ); -if (ret) +if (ret <0 ) goto fail; ndev->ieee80211_ptr = local;
--
Jiri Benc
AppliedQuoted 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