aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/scsi/imm.c
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/scsi/imm.c')
-rw-r--r--drivers/scsi/imm.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/imm.c b/drivers/scsi/imm.c
index 0464c182c577..005d2b05f32d 100644
--- a/drivers/scsi/imm.c
+++ b/drivers/scsi/imm.c
@@ -1159,11 +1159,10 @@ static int __imm_attach(struct parport *pb)
1159 1159
1160 init_waitqueue_head(&waiting); 1160 init_waitqueue_head(&waiting);
1161 1161
1162 dev = kmalloc(sizeof(imm_struct), GFP_KERNEL); 1162 dev = kzalloc(sizeof(imm_struct), GFP_KERNEL);
1163 if (!dev) 1163 if (!dev)
1164 return -ENOMEM; 1164 return -ENOMEM;
1165 1165
1166 memset(dev, 0, sizeof(imm_struct));
1167 1166
1168 dev->base = -1; 1167 dev->base = -1;
1169 dev->mode = IMM_AUTODETECT; 1168 dev->mode = IMM_AUTODETECT;