From: Bartlomiej Zolnierkiewicz Date: Mon, 5 Nov 2007 20:42:27 +0000 (+0100) Subject: ide: add missing rq.ref_count initialization to ide_diag_taskfile() X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=02ac2460ff126afadf8d364c82ebb13e116df33b;p=GitHub%2Fexynos8895%2Fandroid_kernel_samsung_universal8895.git ide: add missing rq.ref_count initialization to ide_diag_taskfile() Noticed by Tejun Heo. Cc: Tejun Heo Signed-off-by: Bartlomiej Zolnierkiewicz --- 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;