]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
iwlwifi: Sanity check for sta_id
authorWey-Yi Guy <wey-yi.w.guy@intel.com>
Fri, 6 Jan 2012 21:16:28 +0000 (13:16 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 24 Jan 2012 19:08:35 +0000 (14:08 -0500)
commit2da424b0773cea3db47e1e81db71eeebde8269d4
treedb9be596b509f53fb0f5f8f390e01f595f1a11b4
parent017664fe8e11ec93dfe3faca5b7ff21071011e6a
iwlwifi: Sanity check for sta_id

On my testing, I saw some strange behavior

[  421.739708] iwlwifi 0000:01:00.0: ACTIVATE a non DRIVER active station id 148 addr 00:00:00:00:00:00
[  421.739719] iwlwifi 0000:01:00.0: iwl_sta_ucode_activate Added STA id 148 addr 00:00:00:00:00:00 to uCode

not sure how it happen, but adding the sanity check to prevent memory
corruption

Signed-off-by: Wey-Yi Guy <wey-yi.w.guy@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn-sta.c