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)
commit16ec75b5de6479637993ad0f7c11a49aae069f68
tree7d31d5f55fd34ddd66c63565257b648b7065e38c
parent4928bd2ef8ece262f4f314630219999a91eaa440
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