summaryrefslogtreecommitdiffstats
path: root/net/ieee80211/softmac/ieee80211softmac_io.c
diff options
context:
space:
mode:
authorJohannes Berg <johannes@sipsolutions.net>2006-01-11 11:01:22 +0100
committerJohn W. Linville <linville@tuxdriver.com>2006-03-23 04:16:55 +0100
commitbba52d5e9ecd0a1705fbac93b6d50ef6ec475315 (patch)
treef268372e96878405b9319a2b83ee621bb28ec7fd /net/ieee80211/softmac/ieee80211softmac_io.c
parent[PATCH] softmac: scan at least once before selecting a network by essid (diff)
downloadlinux-bba52d5e9ecd0a1705fbac93b6d50ef6ec475315.tar.xz
linux-bba52d5e9ecd0a1705fbac93b6d50ef6ec475315.zip
[PATCH] softmac: properly check return value of ieee80211softmac_alloc_mgt
Properly check return value of ieee80211softmac_alloc_mgt in ieee80211softmac_disassoc_deauth (patch by Denis Vlasenko) Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'net/ieee80211/softmac/ieee80211softmac_io.c')
-rw-r--r--net/ieee80211/softmac/ieee80211softmac_io.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/ieee80211/softmac/ieee80211softmac_io.c b/net/ieee80211/softmac/ieee80211softmac_io.c
index a142daea6297..febc51dbb412 100644
--- a/net/ieee80211/softmac/ieee80211softmac_io.c
+++ b/net/ieee80211/softmac/ieee80211softmac_io.c
@@ -308,7 +308,7 @@ ieee80211softmac_disassoc_deauth(struct ieee80211_disassoc **pkt,
{
/* Allocate Packet */
(*pkt) = (struct ieee80211_disassoc *)ieee80211softmac_alloc_mgt(2);
- if (unlikely(pkt == NULL))
+ if (unlikely((*pkt) == NULL))
return 0;
ieee80211softmac_hdr_3addr(mac, &((*pkt)->header), type, net->bssid, net->bssid);
/* Reason */