diff options
author | John W. Linville <linville@tuxdriver.com> | 2010-08-24 21:27:34 +0200 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2010-08-30 22:01:14 +0200 |
commit | d8e1ba76d619dbc0be8fbeee4e6c683b5c812d3a (patch) | |
tree | 58b7978cc71089edcd15e47c92e3597288d9f19c /drivers/net/wireless/p54/txrx.c | |
parent | libertas: if_sdio: fix buffer alignment in struct if_sdio_card (diff) | |
download | linux-d8e1ba76d619dbc0be8fbeee4e6c683b5c812d3a.tar.xz linux-d8e1ba76d619dbc0be8fbeee4e6c683b5c812d3a.zip |
ath5k: check return value of ieee80211_get_tx_rate
This avoids a NULL pointer dereference as reported here:
https://bugzilla.redhat.com/show_bug.cgi?id=625889
When the WARN condition is hit in ieee80211_get_tx_rate, it will return
NULL. So, we need to check the return value and avoid dereferencing it
in that case.
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Cc: stable@kernel.org
Acked-by: Bob Copeland <me@bobcopeland.com>
Diffstat (limited to 'drivers/net/wireless/p54/txrx.c')
0 files changed, 0 insertions, 0 deletions