]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9b5e1b1484865b54da40d83935cb8bee5d2c59a5
treebafb836cd431987c8b0e8637bb461f170a89dc8c
parent5998d991383fa13464981e2439cfa5a711c931b2
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