diff options
Diffstat (limited to 'drivers/ide/ide-eh.c')
-rw-r--r-- | drivers/ide/ide-eh.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/drivers/ide/ide-eh.c b/drivers/ide/ide-eh.c index e2c04886616f..f6e1a82a3cc5 100644 --- a/drivers/ide/ide-eh.c +++ b/drivers/ide/ide-eh.c | |||
@@ -125,10 +125,10 @@ ide_startstop_t ide_error(ide_drive_t *drive, const char *msg, u8 stat) | |||
125 | if (!blk_fs_request(rq)) { | 125 | if (!blk_fs_request(rq)) { |
126 | rq->errors = 1; | 126 | rq->errors = 1; |
127 | if (rq->cmd_type == REQ_TYPE_ATA_TASKFILE) { | 127 | if (rq->cmd_type == REQ_TYPE_ATA_TASKFILE) { |
128 | ide_task_t *task = rq->special; | 128 | struct ide_cmd *cmd = rq->special; |
129 | 129 | ||
130 | if (task) | 130 | if (cmd) |
131 | ide_complete_task(drive, task, stat, err); | 131 | ide_complete_cmd(drive, cmd, stat, err); |
132 | } else if (blk_pm_request(rq)) { | 132 | } else if (blk_pm_request(rq)) { |
133 | ide_complete_pm_rq(drive, rq); | 133 | ide_complete_pm_rq(drive, rq); |
134 | return ide_stopped; | 134 | return ide_stopped; |