From: Johannes Berg Date: Fri, 25 Oct 2013 11:06:06 +0000 (+0200) Subject: iwlwifi: mvm: check sta_id/drain values in debugfs X-Git-Tag: v3.13-rc4~3^2~64^2^2~6^2~9 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=60765a47a433d54e4744c285ad127f182dcd80aa;p=pandora-kernel.git iwlwifi: mvm: check sta_id/drain values in debugfs The station ID must be valid, if it's out of range then the array access may crash. Validate the station ID to the array length, and also validate the drain value even if that doesn't matter all that much. Cc: stable@vger.kernel.org Fixes: 8ca151b568b6 ("iwlwifi: add the MVM driver") Signed-off-by: Johannes Berg Signed-off-by: Emmanuel Grumbach --- Reading git-diff-tree failed