iwlwifi: add range checking in tm sram read command
authorKenny Hsu <kenny.hsu@intel.com>
Fri, 2 Dec 2011 16:48:27 +0000 (08:48 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Tue, 6 Dec 2011 21:06:54 +0000 (16:06 -0500)
commit835df183011db2342b42d06e17c708854ab6defb
treebafb836cd431987c8b0e8637bb461f170a89dc8c
parent158969a26553cba63b7ac674159413d32bb57489
iwlwifi: add range checking in tm sram read command

The size of sram may alter according to ucode type.
Retrieve the maximum sram size by current ucode
type for range checking to prevent wrong data access.

Signed-off-by: Kenny Hsu <kenny.hsu@intel.com>
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-sv-open.c