From: Felix Fietkau Date: Sat, 27 Apr 2013 09:47:01 +0000 (+0200) Subject: ath9k: fix key allocation error handling for powersave keys X-Git-Tag: v3.10-rc2~34^2~21^2^2~8 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4ef69d0394cba8caa9f75d3f2e53429bfb8b3045;p=pandora-kernel.git ath9k: fix key allocation error handling for powersave keys If no keycache slots are available, ath_key_config can return -ENOSPC. If the key index is not checked for errors, it can lead to logspam that looks like this: "ath: wiphy0: keyreset: keycache entry 228 out of range" This can cause follow-up errors if the invalid keycache index gets used for tx. Cc: stable@vger.kernel.org Signed-off-by: Felix Fietkau Signed-off-by: John W. Linville --- Reading git-diff-tree failed