cfg80211: fix channel check in cfg80211_can_use_iftype_chan
authorSimon Wunderlich <[email protected]>
Wed, 23 Jan 2013 14:15:57 +0000 (15:15 +0100)
committerJohannes Berg <[email protected]>
Thu, 24 Jan 2013 15:05:30 +0000 (16:05 +0100)
commit683d41ae6755e6ae297ec09603c229795ab9566e
tree528f940800257f790c98cac635af0f622e0c1a1c
parentf68d776a04bfcebc426f605c4440ffe38c583a4b
cfg80211: fix channel check in cfg80211_can_use_iftype_chan

In commit "cfg80211: check radar interface combinations" a regression
was introduced which might lead to NULL dereference if the argument
chan = NULL, which might happen in IBSS/wext case (and probably
others).

Signed-off-by: Simon Wunderlich <[email protected]>
Signed-off-by: Johannes Berg <[email protected]>
net/wireless/util.c