diff options
Diffstat (limited to 'drivers/scsi/ppa.c')
-rw-r--r-- | drivers/scsi/ppa.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/ppa.c b/drivers/scsi/ppa.c index 2f1fa1eb7e90..67b6d76a6c8d 100644 --- a/drivers/scsi/ppa.c +++ b/drivers/scsi/ppa.c | |||
@@ -1014,10 +1014,9 @@ static int __ppa_attach(struct parport *pb) | |||
1014 | int modes, ppb, ppb_hi; | 1014 | int modes, ppb, ppb_hi; |
1015 | int err = -ENOMEM; | 1015 | int err = -ENOMEM; |
1016 | 1016 | ||
1017 | dev = kmalloc(sizeof(ppa_struct), GFP_KERNEL); | 1017 | dev = kzalloc(sizeof(ppa_struct), GFP_KERNEL); |
1018 | if (!dev) | 1018 | if (!dev) |
1019 | return -ENOMEM; | 1019 | return -ENOMEM; |
1020 | memset(dev, 0, sizeof(ppa_struct)); | ||
1021 | dev->base = -1; | 1020 | dev->base = -1; |
1022 | dev->mode = PPA_AUTODETECT; | 1021 | dev->mode = PPA_AUTODETECT; |
1023 | dev->recon_tmo = PPA_RECON_TMO; | 1022 | dev->recon_tmo = PPA_RECON_TMO; |