qcacmn: Add code to solve the memory leak issue

Add code to solve the memory leak issue

Change-Id: Iecaf7423757cbb82ed4eb8e7f493669a2b76899a
CRs-Fixed: 3617258
このコミットが含まれているのは:
KARTHIK KUMAR T
2023-09-15 14:21:22 +05:30
コミット 18c14aed56

ファイルの表示

@@ -758,8 +758,10 @@ QDF_STATUS __dp_pdev_rx_buffers_no_map_attach(struct dp_soc *soc,
rx_desc_pool->buf_size);
rxdma_ring_entry = (struct dp_buffer_addr_info *)
hal_srng_src_get_next(soc->hal_soc, rxdma_srng);
if (!rxdma_ring_entry)
if (!rxdma_ring_entry) {
qdf_nbuf_free(nbuf);
break;
}
desc_list->rx_desc.nbuf = nbuf;
dp_rx_set_reuse_nbuf(&desc_list->rx_desc, nbuf);