From: Jiri Slaby Date: Thu, 7 Feb 2013 13:44:40 +0000 (+0100) Subject: NET: ath5k, check ath5k_eeprom_mode_from_channel retval X-Git-Tag: v3.9-rc1~139^2~31^2^2~59 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=c5e534e569fd07991d4d09921c73823cd5e4115e;p=pandora-kernel.git NET: ath5k, check ath5k_eeprom_mode_from_channel retval It can, if invalid argument given, return a negative value. In that case we would access arrays out-of-bounds and such. Check the value and yell loudly if that happened as it would be a bug in the implementation. (Instead of silently corrupting memory.) Signed-off-by: Jiri Slaby Cc: Nick Kossifidis Cc: "Luis R. Rodriguez" Signed-off-by: John W. Linville --- Reading git-diff-tree failed