nl80211: jump to out_err upon unsupported iftype
authorRoel Kluin <roel.kluin@gmail.com>
Sat, 22 Aug 2009 19:15:49 +0000 (21:15 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 28 Aug 2009 18:40:41 +0000 (14:40 -0400)
Jump to out_err when the iftype is not supported.

Signed-off-by: Roel Kluin <roel.kluin@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/nl80211.c

index 71bfc04..eddab09 100644 (file)
@@ -2181,7 +2181,7 @@ static int nl80211_dump_mpath(struct sk_buff *skb,
 
        if (netdev->ieee80211_ptr->iftype != NL80211_IFTYPE_MESH_POINT) {
                err = -EOPNOTSUPP;
-               goto out;
+               goto out_err;
        }
 
        while (1) {