From: Dan Carpenter Date: Fri, 23 Dec 2011 07:13:42 +0000 (+0100) Subject: iwlegacy: off by one in iwl3945_hw_build_tx_cmd_rate() X-Git-Tag: v3.3-rc1~182^2~21^2~29 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=d71be937202853eda76562e9678073465d5c0fa8;p=pandora-kernel.git iwlegacy: off by one in iwl3945_hw_build_tx_cmd_rate() We use "rate_index" like this: rate = iwl3945_rates[rate_index].plcp; The iwl3945_rates[] array has IWL_RATE_COUNT_3945 elements so the limit here is off by one. Signed-off-by: Dan Carpenter Signed-off-by: Stanislaw Gruszka Signed-off-by: John W. Linville --- Reading git-diff-tree failed