Browse Source

qcacld-3.0: Fix incorrect arg passed in dp_rx_pkt_thread_enqueue_cbk

Currently dp_rx_pkt_thread_enqueue_cbk passed dp_intf to
dp_rx_packet_cbk, though it expects the caller to pass
dp_link context. This leads to an invalid memory access
due to incorrect typecasting.

Fix this by passing the correct dp_link context to
dp_rx_packet_cbk.

Change-Id: If37fd18d49a6d5464e01c07160a1be612e564ffb
CRs-Fixed: 3568233
Rakesh Pillai 1 year ago
parent
commit
854bd8cafb
1 changed files with 1 additions and 1 deletions
  1. 1 1
      components/dp/core/src/wlan_dp_txrx.c

+ 1 - 1
components/dp/core/src/wlan_dp_txrx.c

@@ -1362,7 +1362,7 @@ QDF_STATUS dp_rx_pkt_thread_enqueue_cbk(void *link_ctx,
 	dp_intf = dp_link->dp_intf;
 	if (dp_intf->runtime_disable_rx_thread &&
 	    dp_intf->txrx_ops.rx.rx_stack)
-		return dp_intf->txrx_ops.rx.rx_stack(dp_intf, nbuf_list);
+		return dp_intf->txrx_ops.rx.rx_stack(dp_link, nbuf_list);
 
 	link_id = dp_link->link_id;