summaryrefslogtreecommitdiffstats
path: root/drivers/scsi
diff options
context:
space:
mode:
authorTejun Heo <htejun@gmail.com>2006-03-31 22:48:52 +0900
committerJeff Garzik <jeff@garzik.org>2006-03-31 10:14:42 -0500
commitbe9a50c8524b53003e5fa32f072945772ffd13a5 (patch)
treea82555012a718f030f6be95fbec5336ff9b76cca /drivers/scsi
parent8e0e694a3a48212bfe29a9ad3cd592bf68dfec81 (diff)
downloadop-kernel-dev-be9a50c8524b53003e5fa32f072945772ffd13a5.zip
op-kernel-dev-be9a50c8524b53003e5fa32f072945772ffd13a5.tar.gz
[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 <htejun@gmail.com> Signed-off-by: Jeff Garzik <jeff@garzik.org>
Diffstat (limited to 'drivers/scsi')
-rw-r--r--drivers/scsi/libata-core.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/scsi/libata-core.c b/drivers/scsi/libata-core.c
index 63ae23b..e63c1ff 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 },
OpenPOWER on IntegriCloud