[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 <jens.axboe@oracle.com>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>

authored by Jens Axboe and committed by Linus Torvalds b7156731 616e8a09

+1 -1
+1 -1
drivers/ide/ide-cd.c
··· 724 * if we have an error, pass back CHECK_CONDITION as the 725 * scsi status byte 726 */ 727 - if (!rq->errors) 728 rq->errors = SAM_STAT_CHECK_CONDITION; 729 730 /* Check for tray open. */
··· 724 * if we have an error, pass back CHECK_CONDITION as the 725 * scsi status byte 726 */ 727 + if (blk_pc_request(rq) && !rq->errors) 728 rq->errors = SAM_STAT_CHECK_CONDITION; 729 730 /* Check for tray open. */