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

Commit afa3ae24 authored by Jack Pham's avatar Jack Pham
Browse files

usb: gadget: u_bam: Release spinlock in case of skb_copy error



gbam_write_data_tohost() was failing to release port_lock_dl
in case skb_copy_expand() failed. Instead of returning, break
out of the loop so the spinlock can be released. Bug was found
with static analysis checker.

Change-Id: Ia4f00ee2f565b03a90b1073ef630f2780e4207e3
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent 153cc9a3
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