Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 0bd8c295 authored by Vijayavardhan Vennapusa's avatar Vijayavardhan Vennapusa
Browse files

USB: u_bam: Handle error path properly in gbam_connect()



when USB is connected, composite layer calls each function driver's
set_alt() function. As part of that, RMNET driver tries to enable
USB IN and USB OUT endpoints. If usb endpoint enable fails, it is just
returning without doing proper cleanup. This might lead to memory leak
or crashes later. Fix the issue by handling error path correctly.

Change-Id: If0b8b6ce4ed4a638f704405d3adac64bee74d87c
Signed-off-by: default avatarVijayavardhan Vennapusa <vvreddy@codeaurora.org>
parent 5a94aeea
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment