[PATCH 2/2] Forgotten memset

From: Panagiotis Issaris
Date: Tue Jul 18 2006 - 21:32:14 EST


From: Panagiotis Issaris <takis@xxxxxxxxxxx>

Was this forgotten and therefore, is it necessary or useful to zero this
out?

Signed-off-by: Panagiotis Issaris <takis@xxxxxxxxxxx>
---
Applies to current GIT or 2.6.18-rc2. Compile-tested with
make allyesconfig.

drivers/scsi/ide-scsi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)

diff --git a/drivers/scsi/ide-scsi.c b/drivers/scsi/ide-scsi.c
index 57f460e..ee1662c 100644
--- a/drivers/scsi/ide-scsi.c
+++ b/drivers/scsi/ide-scsi.c
@@ -327,7 +327,7 @@ static int idescsi_check_condition(ide_d

/* stuff a sense request in front of our current request */
pc = kzalloc (sizeof (idescsi_pc_t), GFP_ATOMIC);
- rq = kmalloc (sizeof (struct request), GFP_ATOMIC);
+ rq = kzalloc (sizeof (struct request), GFP_ATOMIC);
buf = kzalloc(SCSI_SENSE_BUFFERSIZE, GFP_ATOMIC);
if (pc == NULL || rq == NULL || buf == NULL) {
kfree(buf);
--
1.4.1.gd3ba6

-
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/