Skip to content

Commit

Permalink
Merge git://github.com/davem330/ide
Browse files Browse the repository at this point in the history
* git://github.com/davem330/ide:
  ide-disk: Fix request requeuing
  • Loading branch information
torvalds committed Oct 3, 2011
2 parents 7fd21be + 2c8fc86 commit 0d61792
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion drivers/ide/ide-disk.c
Original file line number Diff line number Diff line change
Expand Up @@ -435,7 +435,12 @@ static int idedisk_prep_fn(struct request_queue *q, struct request *rq)
if (!(rq->cmd_flags & REQ_FLUSH))
return BLKPREP_OK;

cmd = kzalloc(sizeof(*cmd), GFP_ATOMIC);
if (rq->special) {
cmd = rq->special;
memset(cmd, 0, sizeof(*cmd));
} else {
cmd = kzalloc(sizeof(*cmd), GFP_ATOMIC);
}

/* FIXME: map struct ide_taskfile on rq->cmd[] */
BUG_ON(cmd == NULL);
Expand Down

0 comments on commit 0d61792

Please sign in to comment.