iwlwifi: Limit size of Event Log dump
authorBen Cahill <ben.m.cahill@intel.com>
Fri, 6 Nov 2009 22:52:57 +0000 (14:52 -0800)
committerJohn W. Linville <linville@tuxdriver.com>
Wed, 11 Nov 2009 20:23:45 +0000 (15:23 -0500)
commit84c4069232a671b3739387949d5cb588dacbd24a
tree47f0bf17d5ea2e1386b26915b348fc0e1f806e3c
parent6762f07fd55ff5e588aa5f0a1b70efe8e268a2e8
iwlwifi: Limit size of Event Log dump

If device provides bad values for Event Log parameters (due to being asleep
or SRAM corruption, etc.), the size can be very, very large (e.g. 0xa5a5a5a5),
which can flood system log.

Sanity-check capacity and next_entry values and limit to reasonable size dump.

Signed-off-by: Ben Cahill <ben.m.cahill@intel.com>
Signed-off-by: Reinette Chatre <reinette.chatre@intel.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
drivers/net/wireless/iwlwifi/iwl-agn.c
drivers/net/wireless/iwlwifi/iwl3945-base.c