From 4f03ffcd3e8a8860c9adc153f03bf2ed7d428f2b Mon Sep 17 00:00:00 2001 From: Dan Carpenter Date: Mon, 26 Aug 2013 18:10:01 +0300 Subject: [PATCH] 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-format-patch failed