diff options
Diffstat (limited to 'drivers/scsi/NCR53C9x.c')
-rw-r--r-- | drivers/scsi/NCR53C9x.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/NCR53C9x.c b/drivers/scsi/NCR53C9x.c index 8b5334c56f0a..773d11dd9953 100644 --- a/drivers/scsi/NCR53C9x.c +++ b/drivers/scsi/NCR53C9x.c | |||
@@ -3606,11 +3606,10 @@ out: | |||
3606 | int esp_slave_alloc(struct scsi_device *SDptr) | 3606 | int esp_slave_alloc(struct scsi_device *SDptr) |
3607 | { | 3607 | { |
3608 | struct esp_device *esp_dev = | 3608 | struct esp_device *esp_dev = |
3609 | kmalloc(sizeof(struct esp_device), GFP_ATOMIC); | 3609 | kzalloc(sizeof(struct esp_device), GFP_ATOMIC); |
3610 | 3610 | ||
3611 | if (!esp_dev) | 3611 | if (!esp_dev) |
3612 | return -ENOMEM; | 3612 | return -ENOMEM; |
3613 | memset(esp_dev, 0, sizeof(struct esp_device)); | ||
3614 | SDptr->hostdata = esp_dev; | 3613 | SDptr->hostdata = esp_dev; |
3615 | return 0; | 3614 | return 0; |
3616 | } | 3615 | } |