Merge "icnss: Use right variable in sizeof for allocation"

This commit is contained in:
Linux Build Service Account 2017-01-30 07:05:01 -08:00 committed by Gerrit - the friendly Code Review server
commit 0aa66bf039

View file

@ -2066,7 +2066,7 @@ static int icnss_modem_notifier_nb(struct notifier_block *nb,
icnss_pr_info("Modem went down, state: %lx\n", priv->state);
event_data = kzalloc(sizeof(*data), GFP_KERNEL);
event_data = kzalloc(sizeof(*event_data), GFP_KERNEL);
if (event_data == NULL)
return notifier_from_errno(-ENOMEM);
@ -2141,7 +2141,7 @@ static int icnss_service_notifier_notify(struct notifier_block *nb,
case SERVREG_NOTIF_SERVICE_STATE_DOWN_V01:
icnss_pr_info("Service down, data: 0x%p, state: 0x%lx\n", data,
priv->state);
event_data = kzalloc(sizeof(*data), GFP_KERNEL);
event_data = kzalloc(sizeof(*event_data), GFP_KERNEL);
if (event_data == NULL)
return notifier_from_errno(-ENOMEM);