diff options
| author | Johan Hovold <johan@kernel.org> | 2026-10-23 14:15:21 +0200 |
|---|---|---|
| committer | Johan Hovold <johan@kernel.org> | 2026-10-29 16:22:05 +0100 |
| commit | a0403880a0a638f189e5187068244d9fd5bc8d4d (patch) | |
| tree | a3400397abe71e69d8ef494aaaf423e8a6c43f84 /tools/perf/scripts/python/exported-sql-viewer.py | |
| parent | 839ff5fa30995c40cd5fba15fd976ad63416738a (diff) | |
USB: serial: io_edgeport: fix potential NULL-deref at open
Do not mark the port as open until after the write FIFO has been
allocated and initialised to prevent a racing interrupt completion from
attempting to send stale data and dereference the FIFO buffer pointer.
Note that the open flag defaults to false and is cleared on close() so
there is no need to reinitialise it on every open().
Fixes: 1da177e4c3f4 ("Linux-2.6.12-rc2")
Cc: stable@vger.kernel.org
Signed-off-by: Johan Hovold <johan@kernel.org>
Diffstat (limited to 'tools/perf/scripts/python/exported-sql-viewer.py')
0 files changed, 0 insertions, 0 deletions
