mac80211: fix potential NULL dereference
authorDan Carpenter <dan.carpenter@oracle.com>
Tue, 27 Nov 2012 17:31:19 +0000 (20:31 +0300)
committerJohannes Berg <johannes.berg@intel.com>
Wed, 28 Nov 2012 12:46:22 +0000 (13:46 +0100)
commit0624760c96da3ffeaec8027a016475ae752d75e1
treead2624cfa20c66d297f1511b96d4d192116c6f2b
parentd9d8b01978f6510a262ddc4da3b3694d5b149cfe
mac80211: fix potential NULL dereference

Smatch complains that we could dereference skb later in the function.
It's probably unlikely, but we may as well return here and avoid it.

Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
[change summary]
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
net/mac80211/rx.c