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 da56163c30a8..e7e11f282c8f 100644 --- a/drivers/scsi/megaraid.c +++ b/drivers/scsi/megaraid.c | |||
@@ -4416,8 +4416,7 @@ mega_internal_command(adapter_t *adapter, megacmd_t *mc, mega_passthru *pthru) | |||
4416 | scmd = &adapter->int_scmd; | 4416 | scmd = &adapter->int_scmd; |
4417 | memset(scmd, 0, sizeof(Scsi_Cmnd)); | 4417 | memset(scmd, 0, sizeof(Scsi_Cmnd)); |
4418 | 4418 | ||
4419 | sdev = kmalloc(sizeof(struct scsi_device), GFP_KERNEL); | 4419 | sdev = kzalloc(sizeof(struct scsi_device), GFP_KERNEL); |
4420 | memset(sdev, 0, sizeof(struct scsi_device)); | ||
4421 | scmd->device = sdev; | 4420 | scmd->device = sdev; |
4422 | 4421 | ||
4423 | scmd->device->host = adapter->host; | 4422 | scmd->device->host = adapter->host; |