Jump to out_err when the iftype is not supported. Signed-off-by: Roel Kluin <roel.kluin@xxxxxxxxx> --- diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 634496b..c6fc083 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c @@ -1998,7 +1998,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) { -- To unsubscribe from this list: send the line "unsubscribe linux-wireless" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html