diff options
| author | Kuen-Han Tsai <[email protected]> | 2023-06-02 15:00:06 +0800 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2023-06-13 11:55:09 +0200 |
| commit | ffd603f214237e250271162a5b325c6199a65382 (patch) | |
| tree | 8fc707c8dccfecaed01e094af1e5a3ed6c85dc8e /tools/perf/scripts/python | |
| parent | 0a453dc9f260281e3a063e07b526a7e494e496fe (diff) | |
usb: gadget: u_serial: Add null pointer check in gs_start_io
If gs_close has cleared port->port.tty and gs_start_io is called
afterwards, then the function tty_wakeup will attempt to access the value
of the pointer port->port.tty which will cause a null pointer
dereference error.
To avoid this, add a null pointer check to gs_start_io before attempting
to access the value of the pointer port->port.tty.
Signed-off-by: Kuen-Han Tsai <[email protected]>
Message-ID: <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python')
0 files changed, 0 insertions, 0 deletions