From: Tejun Heo Date: Fri, 31 Mar 2006 13:48:52 +0000 (+0900) Subject: [PATCH] libata: fix ata_xfer_tbl termination X-Git-Tag: firefly_0821_release~36451^2 X-Git-Url: http://demsky.eecs.uci.edu/git/?a=commitdiff_plain;h=be9a50c8524b53003e5fa32f072945772ffd13a5;p=firefly-linux-kernel-4.4.55.git [PATCH] libata: fix ata_xfer_tbl termination ata_xfer_tbl is terminated by entry with -1 as ->shift. However, ->shift was unsigned int making the termination condition bogus. This patch converts ->shift and ->bits to int. Signed-off-by: Tejun Heo Signed-off-by: Jeff Garzik --- diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c index 63ae23b5c078..e63c1ff1e102 100644 --- a/drivers/scsi/libata-core.c +++ b/drivers/scsi/libata-core.c @@ -278,7 +278,7 @@ static void ata_unpack_xfermask(unsigned int xfer_mask, } static const struct ata_xfer_ent { - unsigned int shift, bits; + int shift, bits; u8 base; } ata_xfer_tbl[] = { { ATA_SHIFT_PIO, ATA_BITS_PIO, XFER_PIO_0 },