Re: [PATCH 2.6.11-rc3 03/11] ide: ide_diag_taskfile() rq initialization fix

From: Tejun Heo
Date: Thu Feb 10 2005 - 03:59:53 EST



03_ide_diag_taskfile_use_init_drive_cmd.patch

In ide_diag_taskfile(), taskfile rq was initialized using
memset(). Use init_drive_cmd() instead.

Signed-off-by: Tejun Heo <htejun@xxxxxxxxx>

ide-taskfile.c | 3 +--
1 files changed, 1 insertion(+), 2 deletions(-)

Index: linux-ide/drivers/ide/ide-taskfile.c
===================================================================
--- linux-ide.orig/drivers/ide/ide-taskfile.c 2005-02-10 17:38:00.437024304 +0900
+++ linux-ide/drivers/ide/ide-taskfile.c 2005-02-10 17:38:00.832957893 +0900
@@ -469,8 +469,7 @@ static int ide_diag_taskfile(ide_drive_t
{
struct request rq;

- memset(&rq, 0, sizeof(rq));
- rq.flags = REQ_DRIVE_TASKFILE;
+ ide_init_drive_cmd(&rq);
rq.buffer = buf;

/*
-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/