]> git.baikalelectronics.ru Git - kernel.git/commit
tty: serial: 8250: Cleanup p->em485 in serial8250_unregister_port
authorMatwey V. Kornilov <matwey@sai.msu.ru>
Mon, 15 Feb 2016 18:42:12 +0000 (21:42 +0300)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 8 Mar 2016 00:11:14 +0000 (16:11 -0800)
commit0985864692548a05119b81d4915228c6ff2aff1b
treeda44eec1dd68b40df496e3dd68bde081e834f518
parente4e8c4e666c3e1cfeaa4fe120e9f61d60b44ee76
tty: serial: 8250: Cleanup p->em485 in serial8250_unregister_port

Formally, currently there is no memory leak, but if
serial8250_ports[line] is reused with other 8250 driver, then em485
will be already activated and it will cause issues.

Fixes: 6d1cbaa2815d ("tty: Add software emulated RS485 support for 8250")
Signed-off-by: Matwey V. Kornilov <matwey@sai.msu.ru>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/tty/serial/8250/8250_core.c