ide: add missing rq.ref_count initialization to ide_diag_taskfile()
PATCH 3/15 ide: add missing rq.ref_count initialization to ide_diag_taskfile()
Noticed by Tejun Heo.
Cc Tejun Heo <[email protected]>
Signed-off-by Bartlomiej Zolnierkiewicz <[email protected]>
--- drivers/ide/ide-taskfile.c | 1 + 1 file changed, 1 insertion(+)
drivers/ide/ide-taskfile.c +1 -0
@@ -495,6 +495,7 @@ static int ide_diag_taskfile(ide_drive_tstruct request rq;memset (&rq,0 ,sizeof (rq)); + rq.ref_count =1 ; rq.cmd_type =REQ_TYPE_ATA_TASKFILE ; rq.buffer = buf;