aboutsummaryrefslogtreecommitdiff
path: root/ce.c
diff options
context:
space:
mode:
Diffstat (limited to 'ce.c')
-rw-r--r--ce.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/ce.c b/ce.c
index a7a163621b21..f2d5106adb01 100644
--- a/ce.c
+++ b/ce.c
@@ -615,7 +615,7 @@ ath11k_ce_alloc_ring(struct ath11k_base *ab, int nentries, int desc_sz)
struct ath11k_ce_ring *ce_ring;
dma_addr_t base_addr;
- ce_ring = kzalloc(struct_size(ce_ring, skb, nentries), GFP_KERNEL);
+ ce_ring = kzalloc_flex(*ce_ring, skb, nentries);
if (ce_ring == NULL)
return ERR_PTR(-ENOMEM);