u_bam_dmux: Fix memory leakage issue for RMNET
Currently driver is freeing rx/tx buffers as part of gbam_disconnect()
and then disabling endpoints. This results in requests queued to USB HW
are dequeued with status set to error code and in completion handler,
buffers are moved to rx_skb_idle_list. When unbind happens, driver is
freeing port structure without freeing skb buffers present in
rx_skb_idle_list which leads to memory leakage. Hence fix the issue by
freeing buffers in rx_skb_idle_list before freeing port structure.
Change-Id: Iaa1b0c7eb358d2bc37e37edea01358f8310d8168
Signed-off-by:
Vijayavardhan Vennapusa <vvreddy@codeaurora.org>
Loading
Please register or sign in to comment