]> git.baikalelectronics.ru Git - kernel.git/commit
iwmc3200wifi: fix NULL pointer dereference in pmkid update
authorZhu Yi <yi.zhu@intel.com>
Tue, 1 Dec 2009 03:48:50 +0000 (11:48 +0800)
committerJohn W. Linville <linville@tuxdriver.com>
Fri, 4 Dec 2009 19:16:24 +0000 (14:16 -0500)
commit79167e06b5ab14da0837c805091360ef5944e7e2
treec927584b8da07df05e9e0d1c6fe710613feedd02
parentfd5b692042d75b7feb438a9a581bd7380b73f48a
iwmc3200wifi: fix NULL pointer dereference in pmkid update

When handling IWM_CMD_PMKID_FLUSH command, the bssid and
pmkid in pmksa are all NULL. Check it before memcpy.

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