aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/ide
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/ide')
-rw-r--r--drivers/ide/ide-cd.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c
index 0b7645b13df1..4a19686fcfe9 100644
--- a/drivers/ide/ide-cd.c
+++ b/drivers/ide/ide-cd.c
@@ -667,7 +667,7 @@ out_end:
667 rq->errors = -EIO; 667 rq->errors = -EIO;
668 } 668 }
669 669
670 if (uptodate == 0) 670 if (uptodate == 0 && rq->bio)
671 ide_cd_error_cmd(drive, cmd); 671 ide_cd_error_cmd(drive, cmd);
672 672
673 /* make sure it's fully ended */ 673 /* make sure it's fully ended */