Skip to content
Snippets Groups Projects
Commit 83cf9f50 authored by Jack Pham's avatar Jack Pham Committed by Stuart Scott
Browse files

usb: gadget: qc_rndis: Properly handle rndis_ipa_init failure


Currently if rndis_ipa_init() fails port->func doesn't get
removed from the configuration list, and will lead to a
use-after-free when the calling function later tries to remove
the function. Fix this to handle the failure gracefully and only
call usb_add_function() if it succeeded.

Bug: 35136547
Change-Id: I2ad0dfeaea6b5b6ba1e47aad564ac052348677e6
Signed-off-by: default avatarJack Pham <jackp@codeaurora.org>
parent d3d63662
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment