]> err.no Git - linux-2.6/blobdiff - drivers/ide/ide-cd.c
[PATCH] I2C: fix up some sysfs device attribute file parameters
[linux-2.6] / drivers / ide / ide-cd.c
index f0bd242e030f2e0f45b1bdf45cb99ae0c3e33b79..39f3e9101ed4b9eebb45237de5d1d3c982063d89 100644 (file)
@@ -1932,8 +1932,11 @@ static ide_startstop_t cdrom_do_block_pc(ide_drive_t *drive, struct request *rq)
 
                /*
                 * check if dma is safe
+                *
+                * NOTE! The "len" and "addr" checks should possibly have
+                * separate masks.
                 */
-               if ((rq->data_len & 3) || (addr & mask))
+               if ((rq->data_len & 15) || (addr & mask))
                        info->dma = 0;
        }