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
Cette révision appartient à :

révisé par
nshrivas

Parent
e0f17e57bb
révision
4b50f33d5b
@@ -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,
|
||||
|
Référencer dans un nouveau ticket
Bloquer un utilisateur