]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: mvm: Avoid accessing Null pointer when setting igtk
authorMatti Gottlieb <matti.gottlieb@intel.com>
Mon, 1 Jun 2015 12:15:11 +0000 (15:15 +0300)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Fri, 26 Jun 2015 06:01:30 +0000 (09:01 +0300)
commitca702d6d30e939c3db10601d341c43cb3ad4379a
tree209012b4c3ee5650f9ea1e11f43bb78e1a68f222
parent35e417899b8225af268356e111c24c033f1922c5
iwlwifi: mvm: Avoid accessing Null pointer when setting igtk

Sometimes when setting an igtk key the station maybe NULL.
In the of case igtk the function will skip to the end, and
try to print sta->addr, if sta is Null - we will access a
Null pointer.

Avoid accessing a Null pointer when setting a igtk key &
the sta == NULL, and print a default MAC address instead.

Signed-off-by: Matti Gottlieb <matti.gottlieb@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/sta.c