wl18xx: make sure fw_status->priv exists before deref
authorEliad Peller <eliad@wizery.com>
Fri, 11 Jul 2014 00:01:38 +0000 (03:01 +0300)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 15 Jul 2014 20:00:02 +0000 (16:00 -0400)
commit9bccb8ae054fda9ab51e3291eeee545ecc1f1854
treec96664867e3bf9c731007b7d8e339e57726ee1b7
parent1631020226ee6a95d1d9ff64562c5da1113ff77f
wl18xx: make sure fw_status->priv exists before deref

In some corner cases with specific timings, we might
try dequeueing tx before we got information about
the link status (e.g. due to recovery during tx).

Instead of NULL dereference, assume all
the links in this case have low priorities.

Signed-off-by: Eliad Peller <eliad@wizery.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/ti/wl18xx/main.c