]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit2c7c3627fe32e87ac01920e46a25db6d4f3af0b1
treec96664867e3bf9c731007b7d8e339e57726ee1b7
parentce4bced627fff15bb985738b195c043c6793cac9
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