aboutsummaryrefslogtreecommitdiff
path: root/qmi.c
diff options
context:
space:
mode:
Diffstat (limited to 'qmi.c')
-rw-r--r--qmi.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/qmi.c b/qmi.c
index 8275345631a0..eebd78e7ff6b 100644
--- a/qmi.c
+++ b/qmi.c
@@ -245,7 +245,7 @@ static int ath10k_qmi_bdf_dnld_send_sync(struct ath10k_qmi *qmi)
const u8 *temp;
int ret;
- req = kzalloc(sizeof(*req), GFP_KERNEL);
+ req = kzalloc_obj(*req);
if (!req)
return -ENOMEM;
@@ -437,7 +437,7 @@ ath10k_qmi_cfg_send_sync_msg(struct ath10k *ar,
int ret;
u32 i;
- req = kzalloc(sizeof(*req), GFP_KERNEL);
+ req = kzalloc_obj(*req);
if (!req)
return -ENOMEM;
@@ -578,7 +578,7 @@ static int ath10k_qmi_cap_send_sync_msg(struct ath10k_qmi *qmi)
struct qmi_txn txn;
int ret;
- resp = kzalloc(sizeof(*resp), GFP_KERNEL);
+ resp = kzalloc_obj(*resp);
if (!resp)
return -ENOMEM;
@@ -877,7 +877,7 @@ ath10k_qmi_driver_event_post(struct ath10k_qmi *qmi,
{
struct ath10k_qmi_driver_event *event;
- event = kzalloc(sizeof(*event), GFP_ATOMIC);
+ event = kzalloc_obj(*event, GFP_ATOMIC);
if (!event)
return -ENOMEM;
@@ -1075,7 +1075,7 @@ int ath10k_qmi_init(struct ath10k *ar, u32 msa_size)
struct ath10k_qmi *qmi;
int ret;
- qmi = kzalloc(sizeof(*qmi), GFP_KERNEL);
+ qmi = kzalloc_obj(*qmi);
if (!qmi)
return -ENOMEM;