From: Johannes Berg Date: Tue, 7 Jul 2009 01:43:02 +0000 (+0200) Subject: mac80211_hwsim: avoid NULL access X-Git-Tag: v2.6.31-rc3~40^2~5^2~4 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ff176674e75bdee9022dded415fb805f15700ad;p=pandora-kernel.git mac80211_hwsim: avoid NULL access There's a race condition -- started can be set to true before channel is set due to the way mac80211 callbacks currently work (->start should probably pass the channel we would like to have initially). For now simply add a check to hwsim to avoid dereferencing the NULL channel pointer. Signed-off-by: Johannes Berg Signed-off-by: John W. Linville --- Reading git-diff-tree failed