iwlwifi: mvm: validate tid and sta_id in ba_notif
authorEyal Shapira <eyal@wizery.com>
Fri, 16 Jan 2015 09:09:30 +0000 (11:09 +0200)
committerEmmanuel Grumbach <emmanuel.grumbach@intel.com>
Tue, 20 Jan 2015 06:47:16 +0000 (08:47 +0200)
commit2cee4762c528a9bd2cdff793197bf591a2196c11
tree65fc2d1d2583eeadb45b8c75e7653d75cfb6de93
parent90ea15c1148bb1517e400ed14bb875e330aead2e
iwlwifi: mvm: validate tid and sta_id in ba_notif

These are coming from the FW and are used to access arrays.
Bad values can cause an out of bounds access so discard
such ba_notifs and warn.

CC: <stable@vger.kernel.org> [3.10+]
Signed-off-by: Eyal Shapira <eyalx.shapira@intel.com>
Signed-off-by: Emmanuel Grumbach <emmanuel.grumbach@intel.com>
drivers/net/wireless/iwlwifi/mvm/tx.c