cw1200: Fix OOPS in monitor mode
authorSolomon Peachy <pizza@shaftnet.org>
Sat, 20 Jul 2013 03:31:27 +0000 (23:31 -0400)
committerJohn W. Linville <linville@tuxdriver.com>
Mon, 22 Jul 2013 20:04:08 +0000 (16:04 -0400)
commitcf25a785c08f30dd8bc0f6eccec455dec1b98628
tree7d31d5f55fd34ddd66c63565257b648b7065e38c
parent0e00c080d14f96350441019e67ba3eed2bac05a1
cw1200: Fix OOPS in monitor mode

In monitor mode, priv->vif is NULL, but at one point in the receive path we
blindly attempt to dereference it.  Add a test to prevent this.

Signed-off-by: Solomon Peachy <pizza@shaftnet.org>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/cw1200/txrx.c