mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-14 08:36:12 -04:00
qcacmn: Free the Rx descriptor pool in error case
Free the Rx descriptors pool if there is a failure in allocating memory for nbuf during dp_pdev_rx_buffers_attach() Change-Id: If4fcfcfdc2fe70c8c4753518ca020a7d8b0bd2b5 CRs-Fixed: 2464596
This commit is contained in:
parent
15febb0d0e
commit
a0bb4d6ec1
1 changed files with 3 additions and 3 deletions
|
|
@ -3442,7 +3442,7 @@ static struct cdp_pdev *dp_pdev_attach_wifi3(struct cdp_soc_t *txrx_soc,
|
|||
if (dp_rx_pdev_attach(pdev)) {
|
||||
QDF_TRACE(QDF_MODULE_ID_DP, QDF_TRACE_LEVEL_ERROR,
|
||||
FL("dp_rx_pdev_attach failed"));
|
||||
goto fail1;
|
||||
goto fail2;
|
||||
}
|
||||
|
||||
DP_STATS_INIT(pdev);
|
||||
|
|
@ -3465,7 +3465,7 @@ static struct cdp_pdev *dp_pdev_attach_wifi3(struct cdp_soc_t *txrx_soc,
|
|||
if (dp_rx_pdev_mon_attach(pdev)) {
|
||||
QDF_TRACE(QDF_MODULE_ID_TXRX, QDF_TRACE_LEVEL_ERROR,
|
||||
"dp_rx_pdev_mon_attach failed");
|
||||
goto rx_mon_attach_fail;
|
||||
goto fail2;
|
||||
}
|
||||
|
||||
if (dp_wdi_event_attach(pdev)) {
|
||||
|
|
@ -3515,7 +3515,7 @@ wdi_attach_fail:
|
|||
*/
|
||||
dp_rx_pdev_mon_detach(pdev);
|
||||
|
||||
rx_mon_attach_fail:
|
||||
fail2:
|
||||
dp_rx_pdev_detach(pdev);
|
||||
|
||||
fail1:
|
||||
|
|
|
|||
Loading…
Reference in a new issue