From: Jens Axboe Date: Mon, 13 Nov 2006 17:05:02 +0000 (+0100) Subject: [PATCH] ide-cd: only set rq->errors SCSI style for block pc requests X-Git-Tag: v2.6.19-rc6~26 X-Git-Url: http://pilppa.com/gitweb/?a=commitdiff_plain;h=b71567312976305cc1ce7e9b71e7378c8bfcb40f;p=linux-2.6-omap-h63xx.git [PATCH] ide-cd: only set rq->errors SCSI style for block pc requests We should only set ->errors to CHECK_CONDITION and so on for requests that use this field in the SCSI manner. Signed-off-by: Jens Axboe Signed-off-by: Linus Torvalds --- diff --git a/drivers/ide/ide-cd.c b/drivers/ide/ide-cd.c index bddfebdf91d..88214943d00 100644 --- a/drivers/ide/ide-cd.c +++ b/drivers/ide/ide-cd.c @@ -724,7 +724,7 @@ static int cdrom_decode_status(ide_drive_t *drive, int good_stat, int *stat_ret) * if we have an error, pass back CHECK_CONDITION as the * scsi status byte */ - if (!rq->errors) + if (blk_pc_request(rq) && !rq->errors) rq->errors = SAM_STAT_CHECK_CONDITION; /* Check for tray open. */