Explorar o código

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
Kiran Venkatappa %!s(int64=6) %!d(string=hai) anos
pai
achega
4b50f33d5b
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      dp/wifi3.0/dp_rx_mon_status.c

+ 1 - 1
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,