From: Roel Kluin Date: Sat, 22 Aug 2009 19:15:49 +0000 (+0200) Subject: nl80211: jump to out_err upon unsupported iftype X-Git-Tag: v2.6.32-rc1~703^2~275^2~62 X-Git-Url: https://openfabrics.org/gitweb/?a=commitdiff_plain;h=0448b5fc032ea76096eb3cfbe3196b3c01b08b86;p=~shefty%2Frdma-dev.git nl80211: jump to out_err upon unsupported iftype Jump to out_err when the iftype is not supported. Signed-off-by: Roel Kluin Signed-off-by: John W. Linville --- diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 71bfc044a93..eddab097435 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -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) {