Unverified Commit 2a0b33fd authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!15256 ata: sata_dwc_460ex: Fix crash due to OOB write

parents df354167 3c5ed235
Loading
Loading
Loading
Loading
+5 −1
Original line number Diff line number Diff line
@@ -149,7 +149,11 @@ struct sata_dwc_device {
#endif
};

#define SATA_DWC_QCMD_MAX	32
/*
 * Allow one extra special slot for commands and DMA management
 * to account for libata internal commands.
 */
#define SATA_DWC_QCMD_MAX	(ATA_MAX_QUEUE + 1)

struct sata_dwc_device_port {
	struct sata_dwc_device	*hsdev;