Skip to content

Commit

Permalink
ide: add missing rq.ref_count initialization to ide_diag_taskfile()
Browse files Browse the repository at this point in the history
Noticed by Tejun Heo.

Cc: Tejun Heo <htejun@gmail.com>
Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
  • Loading branch information
Bartlomiej Zolnierkiewicz committed Nov 5, 2007
1 parent 1c11d24 commit 02ac246
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/ide/ide-taskfile.c
Original file line number Diff line number Diff line change
Expand Up @@ -471,6 +471,7 @@ static int ide_diag_taskfile(ide_drive_t *drive, ide_task_t *args, unsigned long
struct request rq;

memset(&rq, 0, sizeof(rq));
rq.ref_count = 1;
rq.cmd_type = REQ_TYPE_ATA_TASKFILE;
rq.buffer = buf;

Expand Down

0 comments on commit 02ac246

Please sign in to comment.