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

Skip to content
Commit 5ffd3a2b authored by Hemant Kumar's avatar Hemant Kumar Committed by Stephen Boyd
Browse files

usb: f_serial: Remove unnecessary return statements in gport_setup



Driver allocates and initializes port associated with transport
for a serial interface by calling gport_setup. In case of HSIC
transport if port setup is successful gport_setup returns right
away without setting up hsuart port if it is present. As a result
if a usb composition has serial interface for both hsic and hsuart
transports then hsuart port will not be allocated and initialized.
This causes NULL pointer dereference of hsuart port later during
device enumeration.

Change-Id: I07959d88daace9e1a9351c19ee2d04900638a48b
Signed-off-by: default avatarHemant Kumar <hemantk@codeaurora.org>
parent f2138ada
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