diff options
Diffstat (limited to 'drivers/ide/ide-disk.c')
-rw-r--r-- | drivers/ide/ide-disk.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/drivers/ide/ide-disk.c b/drivers/ide/ide-disk.c index 4b32c4eb7b82..ca934c8a1289 100644 --- a/drivers/ide/ide-disk.c +++ b/drivers/ide/ide-disk.c | |||
@@ -152,7 +152,7 @@ static ide_startstop_t __ide_do_rw_disk(ide_drive_t *drive, struct request *rq, | |||
152 | cmd.rq = rq; | 152 | cmd.rq = rq; |
153 | 153 | ||
154 | if (dma == 0) { | 154 | if (dma == 0) { |
155 | ide_init_sg_cmd(&cmd, nsectors); | 155 | ide_init_sg_cmd(&cmd, nsectors << 9); |
156 | ide_map_sg(drive, &cmd); | 156 | ide_map_sg(drive, &cmd); |
157 | } | 157 | } |
158 | 158 | ||
@@ -162,7 +162,7 @@ static ide_startstop_t __ide_do_rw_disk(ide_drive_t *drive, struct request *rq, | |||
162 | /* fallback to PIO */ | 162 | /* fallback to PIO */ |
163 | cmd.tf_flags |= IDE_TFLAG_DMA_PIO_FALLBACK; | 163 | cmd.tf_flags |= IDE_TFLAG_DMA_PIO_FALLBACK; |
164 | ide_tf_set_cmd(drive, &cmd, 0); | 164 | ide_tf_set_cmd(drive, &cmd, 0); |
165 | ide_init_sg_cmd(&cmd, nsectors); | 165 | ide_init_sg_cmd(&cmd, nsectors << 9); |
166 | rc = do_rw_taskfile(drive, &cmd); | 166 | rc = do_rw_taskfile(drive, &cmd); |
167 | } | 167 | } |
168 | 168 | ||