aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/ipr.h
diff options
context:
space:
mode:
authorBrian King <brking@linux.vnet.ibm.com>2009-07-30 11:58:51 -0400
committerJames Bottomley <James.Bottomley@suse.de>2009-08-22 18:52:12 -0400
commit0124ca9d8ee58b3cd028a23cef2fe225fcfee3b8 (patch)
treeeb4e0d6607fa4d128aa24d8811d4c67d89732daf /drivers/scsi/ipr.h
parentc19dcd011238118ad07d3ab7ed1bbc4916826324 (diff)
[SCSI] ipr: fix buffer overflow
ipr_cmd_label[] isn't big enough for an eight byte string plus terminator. Fix by shortening the string to seven bytes. Signed-off-by: Brian King <brking@linux.vnet.ibm.com> Signed-off-by: James Bottomley <James.Bottomley@HansenPartnership.com> Signed-off-by: James Bottomley <James.Bottomley@suse.de>
Diffstat (limited to 'drivers/scsi/ipr.h')
-rw-r--r--drivers/scsi/ipr.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/ipr.h b/drivers/scsi/ipr.h
index 4b63dd6b1c81..163245a1c3e5 100644
--- a/drivers/scsi/ipr.h
+++ b/drivers/scsi/ipr.h
@@ -1199,7 +1199,7 @@ struct ipr_ioa_cfg {
1199 1199
1200 struct ata_host ata_host; 1200 struct ata_host ata_host;
1201 char ipr_cmd_label[8]; 1201 char ipr_cmd_label[8];
1202#define IPR_CMD_LABEL "ipr_cmnd" 1202#define IPR_CMD_LABEL "ipr_cmd"
1203 struct ipr_cmnd *ipr_cmnd_list[IPR_NUM_CMD_BLKS]; 1203 struct ipr_cmnd *ipr_cmnd_list[IPR_NUM_CMD_BLKS];
1204 u32 ipr_cmnd_list_dma[IPR_NUM_CMD_BLKS]; 1204 u32 ipr_cmnd_list_dma[IPR_NUM_CMD_BLKS];
1205}; 1205};