msm: ipa: Fix deleting the TX napi context

TX napi context is a mutable variable and so must be deleted
whenever the pipe is disconnected. Otherwise we will see a
memory leak.

Change-Id: I9309130c786e1092fd1a717359774fca9a37fcd1
Signed-off-by: Chaitanya Pratapa <cpratapa@codeaurora.org>
Цей коміт міститься в:
Chaitanya Pratapa
2020-07-18 23:10:16 -07:00
джерело e6060ecc44
коміт 376242c944

Переглянути файл

@@ -1450,6 +1450,12 @@ int ipa3_teardown_sys_pipe(u32 clnt_hdl)
} while (1);
delete_avail_tx_wrapper_list(ep);
/* Delete NAPI TX object. For WAN_PROD, it is deleted
* in rmnet_ipa driver.
*/
if (ipa3_ctx->tx_napi_enable &&
(ep->client != IPA_CLIENT_APPS_WAN_PROD))
netif_napi_del(&ep->sys->napi_tx);
}
/* channel stop might fail on timeout if IPA is busy */