iwlwifi: add range checking in tm sram read command
authorKenny Hsu <kenny.hsu@intel.com>
Wed, 23 Nov 2011 14:57:22 +0000 (06:57 -0800)
committerWey-Yi Guy <wey-yi.w.guy@intel.com>
Fri, 2 Dec 2011 16:20:57 +0000 (08:20 -0800)
commit76de2f29d437fc1c9324e353e26c5879a4fa6dfb
treeced1f959636ecbb1acbef1b9f73e648f04f9039e
parent306713fd1a04801ab3c9b5c0f76b615f1db46e6d
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>
drivers/net/wireless/iwlwifi/iwl-sv-open.c