cfg80211: fix crash in cfg80211_set_freq()
authorFelix Fietkau <nbd@openwrt.org>
Sat, 15 May 2010 13:46:17 +0000 (15:46 +0200)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 21 May 2010 18:40:00 +0000 (14:40 -0400)
commit9fbc630c89fd210e15ffe84fd6e968a2d39000b0
tree7cd2283f43fcae0ce5779cffd976579977757989
parentb9f2e39d4c2bcd8e94f73ae14450d7764f930a41
cfg80211: fix crash in cfg80211_set_freq()

Since wdev can be NULL, check it before dereferencing it

Signed-off-by: Felix Fietkau <nbd@openwrt.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
net/wireless/chan.c