mirror of
https://github.com/torvalds/linux.git
synced 2026-12-01 02:54:05 +00:00
Commit8a12f88361("net: hso: fix null-ptr-deref during tty device unregistration") fixed the racy minor allocation reported by syzbot, but introduced an unconditional NULL-pointer dereference on every disconnect instead. Specifically, the serial device table must no longer be accessed after the minor has been released by hso_serial_tty_unregister(). Fixes:8a12f88361("net: hso: fix null-ptr-deref during tty device unregistration") Cc: [email protected] Cc: Anirudh Rayabharam <[email protected]> Reported-by: Leonardo Antoniazzi <[email protected]> Signed-off-by: Johan Hovold <[email protected]> Reviewed-by: Anirudh Rayabharam <[email protected]> Signed-off-by: David S. Miller <[email protected]>