diff options
-rw-r--r-- | net/wireless/nl80211.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/net/wireless/nl80211.c b/net/wireless/nl80211.c index 8826888cc14e..9942f0b061ff 100644 --- a/net/wireless/nl80211.c +++ b/net/wireless/nl80211.c | |||
@@ -4418,6 +4418,8 @@ static int nl80211_pre_doit(struct genl_ops *ops, struct sk_buff *skb, | |||
4418 | } | 4418 | } |
4419 | if (ops->internal_flags & NL80211_FLAG_CHECK_NETDEV_UP && | 4419 | if (ops->internal_flags & NL80211_FLAG_CHECK_NETDEV_UP && |
4420 | !netif_running(dev)) { | 4420 | !netif_running(dev)) { |
4421 | cfg80211_unlock_rdev(rdev); | ||
4422 | dev_put(dev); | ||
4421 | if (rtnl) | 4423 | if (rtnl) |
4422 | rtnl_unlock(); | 4424 | rtnl_unlock(); |
4423 | return -ENETDOWN; | 4425 | return -ENETDOWN; |