qcacmn: Handle allocation failure in dp_rx_buffers_replenish
Need to handle allocation failure when replenishing rx buffers. Change-Id: Iad9fad5b14bd0f9599105e255689f8fa174b816d CRs-Fixed: 2000138
This commit is contained in:

committed by
qcabuildsw

parent
3274fbc178
commit
fc0a960b55
@@ -118,6 +118,9 @@ QDF_STATUS dp_rx_buffers_replenish(struct dp_soc *dp_soc, uint32_t mac_id,
|
|||||||
RX_BUFFER_ALIGNMENT,
|
RX_BUFFER_ALIGNMENT,
|
||||||
FALSE);
|
FALSE);
|
||||||
|
|
||||||
|
if (rx_netbuf == NULL)
|
||||||
|
break;
|
||||||
|
|
||||||
qdf_nbuf_map_single(dp_soc->osdev, rx_netbuf,
|
qdf_nbuf_map_single(dp_soc->osdev, rx_netbuf,
|
||||||
QDF_DMA_BIDIRECTIONAL);
|
QDF_DMA_BIDIRECTIONAL);
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user