diff options
author | Dan Carpenter <dan.carpenter@oracle.com> | 2013-03-16 11:07:56 +0100 |
---|---|---|
committer | James Bottomley <JBottomley@Parallels.com> | 2013-05-02 16:37:10 +0200 |
commit | 4f8d1bd273684385fa8e8e4f9b8bd6107016ece8 (patch) | |
tree | 733e563e854d5fd62c24d0125b1abf440f228768 /drivers/leds/leds-pca9532.c | |
parent | [SCSI] bnx2fc: Bumped version to 1.0.14 (diff) | |
download | linux-4f8d1bd273684385fa8e8e4f9b8bd6107016ece8.tar.xz linux-4f8d1bd273684385fa8e8e4f9b8bd6107016ece8.zip |
[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 <dan.carpenter@oracle.com>
Acked-by: Naresh Kumar Inna <naresh@chelsio.com>
Signed-off-by: James Bottomley <JBottomley@Parallels.com>
Diffstat (limited to 'drivers/leds/leds-pca9532.c')
0 files changed, 0 insertions, 0 deletions