diff options
Diffstat (limited to 'drivers/scsi/megaraid.c')
-rw-r--r-- | drivers/scsi/megaraid.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/megaraid.c b/drivers/scsi/megaraid.c index 3907f6718ede..9023ec6a0f8e 100644 --- a/drivers/scsi/megaraid.c +++ b/drivers/scsi/megaraid.c | |||
@@ -4408,8 +4408,7 @@ mega_internal_command(adapter_t *adapter, megacmd_t *mc, mega_passthru *pthru) | |||
4408 | scmd = &adapter->int_scmd; | 4408 | scmd = &adapter->int_scmd; |
4409 | memset(scmd, 0, sizeof(Scsi_Cmnd)); | 4409 | memset(scmd, 0, sizeof(Scsi_Cmnd)); |
4410 | 4410 | ||
4411 | sdev = kmalloc(sizeof(struct scsi_device), GFP_KERNEL); | 4411 | sdev = kzalloc(sizeof(struct scsi_device), GFP_KERNEL); |
4412 | memset(sdev, 0, sizeof(struct scsi_device)); | ||
4413 | scmd->device = sdev; | 4412 | scmd->device = sdev; |
4414 | 4413 | ||
4415 | scmd->device->host = adapter->host; | 4414 | scmd->device->host = adapter->host; |