Need to handle allocation failure when replenishing rx buffers. Change-Id: Iad9fad5b14bd0f9599105e255689f8fa174b816d CRs-Fixed: 2000138
@@ -118,6 +118,9 @@ QDF_STATUS dp_rx_buffers_replenish(struct dp_soc *dp_soc, uint32_t mac_id,
RX_BUFFER_ALIGNMENT,
FALSE);
+ if (rx_netbuf == NULL)
+ break;
+
qdf_nbuf_map_single(dp_soc->osdev, rx_netbuf,
QDF_DMA_BIDIRECTIONAL);