From: Brian King Date: Thu, 30 Jul 2009 15:58:51 +0000 (-0500) Subject: [SCSI] ipr: fix buffer overflow X-Git-Tag: v2.6.32-rc1~689^2~162 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=0124ca9d8ee58b3cd028a23cef2fe225fcfee3b8;p=platform%2Fkernel%2Flinux-exynos.git [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 Signed-off-by: James Bottomley Signed-off-by: James Bottomley --- diff --git a/drivers/scsi/ipr.h b/drivers/scsi/ipr.h index 4b63dd6..163245a 100644 --- a/drivers/scsi/ipr.h +++ b/drivers/scsi/ipr.h @@ -1199,7 +1199,7 @@ struct ipr_ioa_cfg { struct ata_host ata_host; char ipr_cmd_label[8]; -#define IPR_CMD_LABEL "ipr_cmnd" +#define IPR_CMD_LABEL "ipr_cmd" struct ipr_cmnd *ipr_cmnd_list[IPR_NUM_CMD_BLKS]; u32 ipr_cmnd_list_dma[IPR_NUM_CMD_BLKS]; };