Skip to contentSkip to conversation

ide: add missing rq.ref_count initialization to ide_diag_taskfile()

PATCH In review Bartlomiej Zolnierkiewicz 1 participant 1 message Oct 27, 2007 libata

lore
Share & tools
lore
#0 lore raw

PATCH 3/15 ide: add missing rq.ref_count initialization to ide_diag_taskfile()

Noticed by Tejun Heo.

---
 drivers/ide/ide-taskfile.c |    1 +
 1 file changed, 1 insertion(+)
drivers/ide/ide-taskfile.c +1 -0
Index: b/drivers/ide/ide-taskfile.c
===================================================================
@@ -495,6 +495,7 @@ static int ide_diag_taskfile(ide_drive_t
 	struct request rq;
 
 	memset(&rq, 0, sizeof(rq));
+	rq.ref_count = 1;
 	rq.cmd_type = REQ_TYPE_ATA_TASKFILE;
 	rq.buffer = buf;