diff options
Diffstat (limited to 'drivers/scsi/megaraid/megaraid_mm.c')
-rw-r--r-- | drivers/scsi/megaraid/megaraid_mm.c | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/scsi/megaraid/megaraid_mm.c b/drivers/scsi/megaraid/megaraid_mm.c index 84d9c27133d4..b6587a6d8486 100644 --- a/drivers/scsi/megaraid/megaraid_mm.c +++ b/drivers/scsi/megaraid/megaraid_mm.c | |||
@@ -890,12 +890,11 @@ mraid_mm_register_adp(mraid_mmadp_t *lld_adp) | |||
890 | if (lld_adp->drvr_type != DRVRTYPE_MBOX) | 890 | if (lld_adp->drvr_type != DRVRTYPE_MBOX) |
891 | return (-EINVAL); | 891 | return (-EINVAL); |
892 | 892 | ||
893 | adapter = kmalloc(sizeof(mraid_mmadp_t), GFP_KERNEL); | 893 | adapter = kzalloc(sizeof(mraid_mmadp_t), GFP_KERNEL); |
894 | 894 | ||
895 | if (!adapter) | 895 | if (!adapter) |
896 | return -ENOMEM; | 896 | return -ENOMEM; |
897 | 897 | ||
898 | memset(adapter, 0, sizeof(mraid_mmadp_t)); | ||
899 | 898 | ||
900 | adapter->unique_id = lld_adp->unique_id; | 899 | adapter->unique_id = lld_adp->unique_id; |
901 | adapter->drvr_type = lld_adp->drvr_type; | 900 | adapter->drvr_type = lld_adp->drvr_type; |