Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 146333
b: refs/heads/master
c: cbfd082
h: refs/heads/master
i:
  146331: 9b6d893
v: v3
  • Loading branch information
Tejun Heo committed Apr 18, 2009
1 parent 7efdafd commit a0e7a69
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: c267cc1c4db4ccb3406d045a8da8660f0bbfe08d
refs/heads/master: cbfd082abfcbed8c57a12636f36e9bead8d6cfc6
8 changes: 4 additions & 4 deletions trunk/drivers/ide/ide-cd.c
Original file line number Diff line number Diff line change
Expand Up @@ -232,8 +232,8 @@ static void cdrom_queue_request_sense(ide_drive_t *drive, void *sense,
rq->cmd_type = REQ_TYPE_SENSE;
rq->cmd_flags |= REQ_PREEMPT;

/* NOTE! Save the failed command in "rq->buffer" */
rq->buffer = (void *) failed_command;
/* NOTE! Save the failed command in "rq->special" */
rq->special = (void *)failed_command;

if (failed_command)
ide_debug_log(IDE_DBG_SENSE, "failed_cmd: 0x%x",
Expand All @@ -247,10 +247,10 @@ static void cdrom_queue_request_sense(ide_drive_t *drive, void *sense,
static void ide_cd_complete_failed_rq(ide_drive_t *drive, struct request *rq)
{
/*
* For REQ_TYPE_SENSE, "rq->buffer" points to the original
* For REQ_TYPE_SENSE, "rq->special" points to the original
* failed request
*/
struct request *failed = (struct request *)rq->buffer;
struct request *failed = (struct request *)rq->special;
struct cdrom_info *info = drive->driver_data;
void *sense = &info->sense_data;

Expand Down

0 comments on commit a0e7a69

Please sign in to comment.