]> git.baikalelectronics.ru Git - kernel.git/commit
iwlwifi: correctly size command string arrays
authorJohannes Berg <johannes.berg@intel.com>
Wed, 19 Aug 2015 14:51:33 +0000 (16:51 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Sun, 23 Aug 2015 06:36:02 +0000 (09:36 +0300)
commit5ae7fb235233378a7ea29342916b49ec3f632872
tree74f2ca3697e93899e9f731d2b0f3464aed4a1248
parent6f0f97fb6c886bbb1b9acc197c5ea59ff353e525
iwlwifi: correctly size command string arrays

The command string array is assumed to be indexable by a full u8, so it
must have 256 entries (0-255), not just 255. A recent firmware change
(apparently) started using the command 0xff for a notification to the
host, causing the driver to crash in debug message/tracing code.

Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/dvm/agn.h
drivers/net/wireless/iwlwifi/dvm/rx.c
drivers/net/wireless/iwlwifi/mvm/ops.c