diff options
| author | Kalle Valo <[email protected]> | 2010-01-23 20:27:14 +0200 |
|---|---|---|
| committer | John W. Linville <[email protected]> | 2010-01-23 16:47:00 -0500 |
| commit | 3b43a18743421cccd33902e29016fa49b2d52dbb (patch) | |
| tree | eaaab22a16260625854a51076fe64d5787e98ac4 /include | |
| parent | f12553ebe045a8a40ab33fa500fb57d10706e226 (diff) | |
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 <[email protected]>
Cc: Johannes Berg <[email protected]>
Signed-off-by: Kalle Valo <[email protected]>
Tested-by: Bob Copeland <[email protected]>
Signed-off-by: John W. Linville <[email protected]>
Diffstat (limited to 'include')
0 files changed, 0 insertions, 0 deletions