diff options
Diffstat (limited to 'net/mac80211/ieee80211.c')
-rw-r--r-- | net/mac80211/ieee80211.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/net/mac80211/ieee80211.c b/net/mac80211/ieee80211.c index a00858dbab18..f82ebdd53d48 100644 --- a/net/mac80211/ieee80211.c +++ b/net/mac80211/ieee80211.c | |||
@@ -838,8 +838,8 @@ int ieee80211_if_update_wds(struct net_device *dev, u8 *remote_addr) | |||
838 | 838 | ||
839 | /* Create STA entry for the new peer */ | 839 | /* Create STA entry for the new peer */ |
840 | sta = sta_info_add(local, dev, remote_addr, GFP_KERNEL); | 840 | sta = sta_info_add(local, dev, remote_addr, GFP_KERNEL); |
841 | if (!sta) | 841 | if (IS_ERR(sta)) |
842 | return -ENOMEM; | 842 | return PTR_ERR(sta); |
843 | 843 | ||
844 | sta->flags |= WLAN_STA_AUTHORIZED; | 844 | sta->flags |= WLAN_STA_AUTHORIZED; |
845 | 845 | ||