From: Helmut Schaa Date: Mon, 14 Nov 2011 14:28:19 +0000 (+0100) Subject: mac80211: Check rate->idx before rate->count X-Git-Tag: v3.3-rc1~182^2~261^2~193 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=b79296beeba470074737a7d5a941f4ddd64863d8;p=pandora-kernel.git mac80211: Check rate->idx before rate->count The drivers are not required to fill in rate->count if rate->idx is set to -1. Hence, we should first check rate->idx before accessing rate->count. Signed-off-by: Helmut Schaa Acked-by: Felix Fietkau Signed-off-by: John W. Linville --- Reading git-diff-tree failed