]> git.kernelconcepts.de Git - karo-tx-linux.git/commit
ISDN: capi, use kref from tty_port
authorJiri Slaby <jslaby@suse.cz>
Thu, 15 Nov 2012 08:49:50 +0000 (09:49 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 16 Nov 2012 01:20:57 +0000 (17:20 -0800)
commit55bef83cc68bda76a14a23b1076a9a9a9e43af68
tree65614337f5cd23e1aebb5f97ae23fe53dbfd9fd5
parent81c79838ca24f48e0e4bb96502d131d6af758ae0
ISDN: capi, use kref from tty_port

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.

Here it is enough to switch to refcounting in tty_port.

Signed-off-by: Jiri Slaby <jslaby@suse.cz>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/isdn/capi/capi.c