iwmc3200wifi: Check for cmd pointer before dereferencing it
authorSamuel Ortiz <sameo@linux.intel.com>
Fri, 16 Oct 2009 05:18:55 +0000 (13:18 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 27 Oct 2009 20:48:26 +0000 (16:48 -0400)
commit708567e0723f3a217286c2b60805af6de360ec50
tree7ae30ebce5cf1fcdee80ce985ad1272ef3e82342
parentf96cca8483c1b0bcc8002dc466159bf8fd53ca47
iwmc3200wifi: Check for cmd pointer before dereferencing it

The wifi_if_wrapper notification handling code uses a cmd pointer without
checking if it's valid or not. We're dereferencing it because we assume that
we only get to that point if there was a pending command for us. That's not
always true, so we'd better check.

Signed-off-by: Samuel Ortiz <sameo@linux.intel.com>
Signed-off-by: Zhu Yi <yi.zhu@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwmc3200wifi/rx.c