projects
/
GitHub
/
LineageOS
/
android_kernel_samsung_universal7580.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
616e8a0
)
[PATCH] ide-cd: only set rq->errors SCSI style for block pc requests
author
Jens Axboe
<jens.axboe@oracle.com>
Mon, 13 Nov 2006 17:05:02 +0000
(18:05 +0100)
committer
Linus Torvalds
<torvalds@g5.osdl.org>
Mon, 13 Nov 2006 17:47:00 +0000
(09:47 -0800)
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>
drivers/ide/ide-cd.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/ide/ide-cd.c
b/drivers/ide/ide-cd.c
index bddfebdf91d8aea8a14ee0c0de25e0016e74ef63..88214943d00ad776a0977507c4b5d721ed894949 100644
(file)
--- 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. */