From: John W. Linville Date: Tue, 24 Aug 2010 19:27:34 +0000 (-0400) Subject: ath5k: check return value of ieee80211_get_tx_rate X-Git-Tag: v2.6.36-rc4~87^2~14^2~7 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d8e1ba76d619dbc0be8fbeee4e6c683b5c812d3a;p=pandora-kernel.git 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 Cc: stable@kernel.org Acked-by: Bob Copeland --- Reading git-diff-tree failed