Kalle Valo 3b43a18743 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 <proski@gnu.org>
Cc: Johannes Berg <johannes@sipsolutions.net>
Signed-off-by: Kalle Valo <kalle.valo@iki.fi>
Tested-by: Bob Copeland <me@bobcopeland.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
2010-01-23 16:47:00 -05:00
..
2009-12-21 18:38:54 -05:00
2009-07-10 15:01:49 -04:00
2010-01-19 16:43:10 -05:00
2009-12-28 16:54:49 -05:00
2008-04-08 16:44:45 -04:00
2008-04-08 16:44:45 -04:00
2009-12-28 16:54:49 -05:00
2010-01-12 14:20:58 -05:00
2009-07-24 15:05:09 -04:00
2010-01-05 16:21:40 -05:00
2010-01-19 16:25:19 -05:00