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

Skip to content
Commit 4aebedc7 authored by Saket Saurabh's avatar Saket Saurabh
Browse files

usb: u_serial: Fix NULL pointer dereference in u_serial tty callbacks



The tty driver data is initialized in gs_open() during port open and
is set to NULL in gs_close() as part of port close. It is possible
that TTY may invoke the registered u_serial tty callback methods after
port is closed. This race between gs_close() and tty callback methods,
leads to NULL pointer dereference.

Fix the issue by adding check for tty driver data in all the u_serial
tty callback methods.

CRs-Fixed: 678702
Change-Id: I9e45f1927f9610fc8567edb8e609a10f19c00017
Signed-off-by: default avatarSaket Saurabh <ssaurabh@codeaurora.org>
parent da6b67ea
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