Sfoglia il codice sorgente

qcacmn: Fix buffer alignment check in target_if_dbr_replenish_ring

target_if_dbr_replenish_ring should check the mapped physical address for
agreed byte boundary alignment. Fix the logic in the check.

Change-Id: I05058ae69df8a2ee2caf9ce1295c0a2e9026511c
CRs-Fixed: 2283230
Shiva Krishna Pittala 6 anni fa
parent
commit
0baf52bdf7

+ 1 - 1
target_if/direct_buf_rx/src/target_if_direct_buf_rx_main.c

@@ -355,7 +355,7 @@ static QDF_STATUS target_if_dbr_replenish_ring(struct wlan_objmgr_pdev *pdev,
 		return QDF_STATUS_E_FAILURE;
 	}
 
-	QDF_ASSERT(!((uint64_t)paddr & dbr_ring_cap->min_buf_align));
+	QDF_ASSERT(!((uint64_t)paddr % dbr_ring_cap->min_buf_align));
 	dbr_buf_pool[cookie].paddr = paddr;
 
 	hal_srng_access_start(hal_soc, srng);