> 09_ide_do_rw_disk_lba48_dma_check_fix.patch
> 
>       In __ide_do_rw_disk(), the shifted block, instead of the
>       original rq->sector, should be used when checking range for
>       lba48 dma.


Signed-off-by: Tejun Heo <[EMAIL PROTECTED]>


Index: linux-ide-export/drivers/ide/ide-disk.c
===================================================================
--- linux-ide-export.orig/drivers/ide/ide-disk.c        2005-02-02 
10:27:15.819213531 +0900
+++ linux-ide-export/drivers/ide/ide-disk.c     2005-02-02 10:28:03.898413061 
+0900
@@ -132,7 +132,7 @@ ide_startstop_t __ide_do_rw_disk (ide_dr
        nsectors.all            = (u16) rq->nr_sectors;
 
        if (hwif->no_lba48_dma && lba48 && dma) {
-               if (rq->sector + rq->nr_sectors > 1ULL << 28)
+               if (block + rq->nr_sectors > 1ULL << 28)
                        dma = 0;
        }
 
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [EMAIL PROTECTED]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

Reply via email to