浏览代码

nl80211: jump to out_err upon unsupported iftype

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>
Roel Kluin 15 年之前
父节点
当前提交
0448b5fc03
共有 1 个文件被更改,包括 1 次插入1 次删除
  1. 1 1
      net/wireless/nl80211.c

+ 1 - 1
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) {