From: Dan Carpenter Date: Wed, 12 Oct 2011 08:10:37 +0000 (+0300) Subject: iwmc3200wifi: add a range check to iwm_cfg80211_get_key() X-Git-Tag: v3.2-rc1~129^2~83^2~47 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=f9a703e173849425079e29e63bf960c2625e0a85;p=pandora-kernel.git iwmc3200wifi: add a range check to iwm_cfg80211_get_key() Smatch complains that "key_index" is capped at 5 in nl80211_get_key() but iwm->keys[] only has 4 elements. I don't know if this is really needed, but the other ->get_key() implementations seemed to check for overflows so I've added a check here. Signed-off-by: Dan Carpenter Acked-by: Samuel Ortiz Signed-off-by: John W. Linville --- Reading git-diff-tree failed