From: Dan Carpenter Date: Mon, 26 Aug 2013 15:10:01 +0000 (+0300) Subject: serial: icom: move array overflow checks earlier X-Git-Tag: v3.12-rc1~182^2~14 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f03ffcd3e8a8860c9adc153f03bf2ed7d428f2b;p=pandora-kernel.git serial: icom: move array overflow checks earlier This code does an annoying thing where it writes to the array and then checks later for array overflows. I don't know if it's actually possible to overflow but let's check before using the array index. Signed-off-by: Dan Carpenter Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed