Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0124ca9d authored by Brian King's avatar Brian King Committed by James Bottomley
Browse files

[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: default avatarBrian King <brking@linux.vnet.ibm.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@HansenPartnership.com>
Signed-off-by: default avatarJames Bottomley <James.Bottomley@suse.de>
parent c19dcd01
Loading
Loading
Loading
Loading
+1 −1
Original line number Original line Diff line number Diff line
@@ -1199,7 +1199,7 @@ struct ipr_ioa_cfg {


	struct ata_host ata_host;
	struct ata_host ata_host;
	char ipr_cmd_label[8];
	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];
	struct ipr_cmnd *ipr_cmnd_list[IPR_NUM_CMD_BLKS];
	u32 ipr_cmnd_list_dma[IPR_NUM_CMD_BLKS];
	u32 ipr_cmnd_list_dma[IPR_NUM_CMD_BLKS];
};
};