summaryrefslogtreecommitdiffstats
path: root/drivers/ide
diff options
context:
space:
mode:
authorBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-11-05 21:42:27 +0100
committerBartlomiej Zolnierkiewicz <bzolnier@gmail.com>2007-11-05 21:42:27 +0100
commit02ac2460ff126afadf8d364c82ebb13e116df33b (patch)
treea0c7f0c5a58632f75eff7e40c982245f256d6943 /drivers/ide
parent1c11d241115a352a4468a7a4884c22cf68a5c6fd (diff)
downloadlinux-02ac2460ff126afadf8d364c82ebb13e116df33b.tar.bz2
ide: add missing rq.ref_count initialization to ide_diag_taskfile()
Noticed by Tejun Heo. Cc: Tejun Heo <htejun@gmail.com> Signed-off-by: Bartlomiej Zolnierkiewicz <bzolnier@gmail.com>
Diffstat (limited to 'drivers/ide')
-rw-r--r--drivers/ide/ide-taskfile.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/drivers/ide/ide-taskfile.c b/drivers/ide/ide-taskfile.c
index d066546f2831..eba9635f101a 100644
--- a/drivers/ide/ide-taskfile.c
+++ b/drivers/ide/ide-taskfile.c
@@ -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;