premature tty_port destruction diagnostic
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest1 patch 0 repliesNew
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/1 | tty: Prevent tty_port destruction if tty not releaseddrivers/ | +4 | 0 replies |
Reviews trailers per patch
No Reviewed-by, Acked-by or Tested-by trailers for v1 yet.
Cover letter [PATCH tty-next 0/1] premature tty_port destruction diagnostic
Hi Greg,
Now that the bluetooth rfcomm tty refcounting is fixed in linux-next, I'd like to add this patch which aborts tty_port destruction if the tty has not yet been released. At least this problem won't show up as some random memory corruption (as was happening with rfcomm).
Even though this only WARNs, the machine is likely to crash anyway because the port indexes will not be in sync; the tty layer will assume the port has been destructed while the tty_port obviously has not.
Regards,
Peter Hurley (1):
tty: Prevent tty_port destruction if tty not released
drivers/tty/tty_port.c | 4 ++++ 1 file changed, 4 insertions(+)
Signature · 1 line
1.8.1.2