qcacmn: Use size of CDP rx ind struct in ppdu stats handler

cdp_rx_indication_ppdu structure is used to indicate ppdu stats to upper
layer. Use the size of this struct instead of hal_rx_ppdu_info struct
while allocating SKB for notifying this event to upper layer.
hal_rx_ppdu_info struct is smaller sized structure and this can cause
invalid access.

Change-Id: I0db5a04f6e8ca8d8d38ddc83bcb7859292b45ba1
CRs-Fixed: 2419923
This commit is contained in:
Kiran Venkatappa
2019-03-20 18:14:17 +05:30
committed by nshrivas
parent e0f17e57bb
commit 4b50f33d5b

View File

@@ -435,7 +435,7 @@ dp_rx_handle_ppdu_stats(struct dp_soc *soc, struct dp_pdev *pdev,
return; return;
} }
ppdu_nbuf = qdf_nbuf_alloc(soc->osdev, ppdu_nbuf = qdf_nbuf_alloc(soc->osdev,
sizeof(struct hal_rx_ppdu_info), 0, 0, FALSE); sizeof(struct cdp_rx_indication_ppdu), 0, 0, FALSE);
if (ppdu_nbuf) { if (ppdu_nbuf) {
dp_rx_populate_cdp_indication_ppdu(pdev, ppdu_info, ppdu_nbuf); dp_rx_populate_cdp_indication_ppdu(pdev, ppdu_info, ppdu_nbuf);
qdf_nbuf_put_tail(ppdu_nbuf, qdf_nbuf_put_tail(ppdu_nbuf,