From: Kalle Valo Date: Sat, 23 Jan 2010 18:27:14 +0000 (+0200) Subject: mac80211: fix tx select key null pointer crash with hostapd X-Git-Tag: v2.6.34-rc1~233^2~421^2~75 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=3b43a18743421cccd33902e29016fa49b2d52dbb;p=pandora-kernel.git mac80211: fix tx select key null pointer crash with hostapd Pavel Roskin reported a crash in ieee80211_tx_h_select_key(): http://marc.info/?l=linux-wireless&m=126419655108528&w=2 This is a regression from patch "mac80211: move control.hw_key assignment". Fix it as suggested by Johannes, adding an else statement to make sure that tx->key is not accessed when it's null. Compile-tested only. Reported-by: Pavel Roskin Cc: Johannes Berg Signed-off-by: Kalle Valo Tested-by: Bob Copeland Signed-off-by: John W. Linville --- Reading git-diff-tree failed