Loading net/wireless/nl80211.c +10 −1 Original line number Diff line number Diff line Loading @@ -6976,7 +6976,9 @@ static int nl80211_set_station(struct sk_buff *skb, struct genl_info *info) } /* driver will call cfg80211_check_station_change() */ wdev_lock(dev->ieee80211_ptr); err = rdev_change_station(rdev, dev, mac_addr, ¶ms); wdev_unlock(dev->ieee80211_ptr); out_put_vlan: dev_put(params.vlan); Loading Loading @@ -7232,7 +7234,9 @@ static int nl80211_new_station(struct sk_buff *skb, struct genl_info *info) /* be aware of params.vlan when changing code here */ wdev_lock(dev->ieee80211_ptr); err = rdev_add_station(rdev, dev, mac_addr, ¶ms); wdev_unlock(dev->ieee80211_ptr); dev_put(params.vlan); return err; Loading @@ -7243,6 +7247,7 @@ static int nl80211_del_station(struct sk_buff *skb, struct genl_info *info) struct cfg80211_registered_device *rdev = info->user_ptr[0]; struct net_device *dev = info->user_ptr[1]; struct station_del_parameters params; int ret; memset(¶ms, 0, sizeof(params)); Loading Loading @@ -7290,7 +7295,11 @@ static int nl80211_del_station(struct sk_buff *skb, struct genl_info *info) params.reason_code = WLAN_REASON_PREV_AUTH_NOT_VALID; } return rdev_del_station(rdev, dev, ¶ms); wdev_lock(dev->ieee80211_ptr); ret = rdev_del_station(rdev, dev, ¶ms); wdev_unlock(dev->ieee80211_ptr); return ret; } static int nl80211_send_mpath(struct sk_buff *msg, u32 portid, u32 seq, Loading Loading
net/wireless/nl80211.c +10 −1 Original line number Diff line number Diff line Loading @@ -6976,7 +6976,9 @@ static int nl80211_set_station(struct sk_buff *skb, struct genl_info *info) } /* driver will call cfg80211_check_station_change() */ wdev_lock(dev->ieee80211_ptr); err = rdev_change_station(rdev, dev, mac_addr, ¶ms); wdev_unlock(dev->ieee80211_ptr); out_put_vlan: dev_put(params.vlan); Loading Loading @@ -7232,7 +7234,9 @@ static int nl80211_new_station(struct sk_buff *skb, struct genl_info *info) /* be aware of params.vlan when changing code here */ wdev_lock(dev->ieee80211_ptr); err = rdev_add_station(rdev, dev, mac_addr, ¶ms); wdev_unlock(dev->ieee80211_ptr); dev_put(params.vlan); return err; Loading @@ -7243,6 +7247,7 @@ static int nl80211_del_station(struct sk_buff *skb, struct genl_info *info) struct cfg80211_registered_device *rdev = info->user_ptr[0]; struct net_device *dev = info->user_ptr[1]; struct station_del_parameters params; int ret; memset(¶ms, 0, sizeof(params)); Loading Loading @@ -7290,7 +7295,11 @@ static int nl80211_del_station(struct sk_buff *skb, struct genl_info *info) params.reason_code = WLAN_REASON_PREV_AUTH_NOT_VALID; } return rdev_del_station(rdev, dev, ¶ms); wdev_lock(dev->ieee80211_ptr); ret = rdev_del_station(rdev, dev, ¶ms); wdev_unlock(dev->ieee80211_ptr); return ret; } static int nl80211_send_mpath(struct sk_buff *msg, u32 portid, u32 seq, Loading