diff options
| author | Johan Hovold <johan@kernel.org> | 2026-10-19 14:34:12 +0200 |
|---|---|---|
| committer | Johan Hovold <johan@kernel.org> | 2026-10-29 16:13:02 +0100 |
| commit | 0e0b1fcfb80c0490bda7f7eb633ebb5e431c2e16 (patch) | |
| tree | 22770ca584656609f4f40118eaa550488ebeca27 /tools/perf/scripts/python/bin | |
| parent | a3d43b39032cc5565a5693a10c581844342372cd (diff) | |
USB: serial: upd78f0730: fix NULL-deref on hangup
The port tty pointer is cleared on hangup before deasserting the modem
control signals and should not be used in the dtr_rts() callback.
Factor out a new upd78f0730_port_tiocmset() helper that can be used in
upd78f0730_dtr_rts() to avoid dereferencing a NULL-pointer on hangup
(e.g. on disconnect).
This issue was flagged by an LLM.
Fixes: ea534e0b4047 ("USB: serial: add uPD78F0730 USB to Serial Adaptor Driver")
Cc: stable@vger.kernel.org # 4.11
Cc: Maksim Salau <maksim.salau@gmail.com>
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/bin')
0 files changed, 0 insertions, 0 deletions
