From 4b50f33d5b02083037f2386ad222fdc9dd55fa15 Mon Sep 17 00:00:00 2001 From: Kiran Venkatappa Date: Wed, 20 Mar 2019 18:14:17 +0530 Subject: [PATCH] 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 --- dp/wifi3.0/dp_rx_mon_status.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/dp/wifi3.0/dp_rx_mon_status.c b/dp/wifi3.0/dp_rx_mon_status.c index 60f8c3a670..7ea3dd9e53 100644 --- a/dp/wifi3.0/dp_rx_mon_status.c +++ b/dp/wifi3.0/dp_rx_mon_status.c @@ -435,7 +435,7 @@ dp_rx_handle_ppdu_stats(struct dp_soc *soc, struct dp_pdev *pdev, return; } 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) { dp_rx_populate_cdp_indication_ppdu(pdev, ppdu_info, ppdu_nbuf); qdf_nbuf_put_tail(ppdu_nbuf,