aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/tty/serial/ifx6x60.c
diff options
context:
space:
mode:
authorJiri Slaby <jslaby@suse.cz>2012-11-15 09:49:55 +0100
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>2012-11-15 17:20:58 -0800
commitd0f59141ca40159c9d142c0f62e9aea61f846539 (patch)
tree0d1a37909ac7157b8f38eb94d9a285224dcc383a /drivers/tty/serial/ifx6x60.c
parentTTY: introduce tty_port_destroy (diff)
downloadlinux-dev-d0f59141ca40159c9d142c0f62e9aea61f846539.tar.xz
linux-dev-d0f59141ca40159c9d142c0f62e9aea61f846539.zip
TTY: isicom, fix tty buffers memory leak
After commit "TTY: move tty buffers to tty_port", the tty buffers are not freed in some drivers. This is because tty_port_destructor is not called whenever a tty_port is freed. This was an assumption I counted with but was unfortunately untrue. So fix the drivers to fulfil this assumption. This one is special as we need more work to be done. Previously, the tty_port was initialized at module load time, but to be able to destroy the port and init it again, we now do the initialization in probe and destroy in remove. I.e. at more appropriate places for that. Signed-off-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/tty/serial/ifx6x60.c')
0 files changed, 0 insertions, 0 deletions