From: Dan Carpenter Date: Sat, 16 Mar 2013 10:07:56 +0000 (+0300) Subject: [SCSI] csiostor: off by one error X-Git-Tag: v3.10-rc1~3^2~1^2~81 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=4f8d1bd273684385fa8e8e4f9b8bd6107016ece8;p=pandora-kernel.git [SCSI] csiostor: off by one error We need to store PROTO_ERR_IMPL_LOGO (26) things here, but the first element isn't used so the array should have 27 elements. This matches fwevt_to_rnevt[] which has 27 elements. The patch solves a Smatch static checker warning on my system: drivers/scsi/csiostor/csio_rnode.c:880 csio_rnode_fwevt_handler() error: buffer overflow '(rn)->stats.n_evt_fw' 26 <= 26 Signed-off-by: Dan Carpenter Acked-by: Naresh Kumar Inna Signed-off-by: James Bottomley --- Reading git-diff-tree failed