rtlwifi: Fix oops on rate-control failure
authorLarry Finger <Larry.Finger@lwfinger.net>
Fri, 6 Apr 2012 21:54:17 +0000 (16:54 -0500)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 9 Apr 2012 19:54:49 +0000 (15:54 -0400)
commite89f7690a3adbde0af7c294f83c242ba6a367ef0
treeb7d886c9e9f43644f2138b222c213ad5ab670322
parentaa331df0e5e6ebac086ed80b4fbbfd912fe6b32a
rtlwifi: Fix oops on rate-control failure

When the rate-control indexing is incorrectly set up, mac80211 issues
a warning and returns NULL from the call to ieee80211_get_tx_rate().
When this happens, avoid a NULL pointer dereference.

Signed-off-by: Larry Finger <Larry.Finger@lwfinger.net>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/rtlwifi/base.c