mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-11 23:24:22 -04:00
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:
parent
3274fbc178
commit
fc0a960b55
1 changed files with 3 additions and 0 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
Loading…
Reference in a new issue