瀏覽代碼

[PATCH] ide-cd: one more missing REQ_TYPE_CMD_ATA check

Signed-off-by: Jens Axboe <jens.axboe@oracle.com>
Jens Axboe 18 年之前
父節點
當前提交
8770c018da
共有 1 個文件被更改,包括 1 次插入1 次删除
  1. 1 1
      drivers/ide/ide-cd.c

+ 1 - 1
drivers/ide/ide-cd.c

@@ -716,7 +716,7 @@ static int cdrom_decode_status(ide_drive_t *drive, int good_stat, int *stat_ret)
 		ide_error(drive, "request sense failure", stat);
 		return 1;
 
-	} else if (blk_pc_request(rq)) {
+	} else if (blk_pc_request(rq) || rq->cmd_type == REQ_TYPE_ATA_PC) {
 		/* All other functions, except for READ. */
 		unsigned long flags;