From: Dan Carpenter Date: Tue, 18 Oct 2011 06:50:43 +0000 (+0300) Subject: iwmc3200wifi: add some more range checks X-Git-Tag: v3.3-rc1~182^2~545^2~182 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5a5ee76e09b1f5a3a550127aecc2ea4d59f17963;p=pandora-kernel.git iwmc3200wifi: add some more range checks My previous patch added a check to get_key() but missed a couple other places which need range checks. The problem here is that wifi drivers have different numbers of keys. The lower levels assume that they can have up to 4 default keys and 2 management keys but this driver only has the default keys so we could go past the end of the ->keys[] array. Signed-off-by: Dan Carpenter Acked-by: Samuel Ortiz Signed-off-by: John W. Linville --- Reading git-diff-tree failed