Searched hist:"81 c79838ca24f48e0e4bb96502d131d6af758ae0" (Results 1 – 2 of 2) sorted by relevance
/openbmc/linux/drivers/tty/ |
H A D | tty_port.c | diff 81c79838ca24f48e0e4bb96502d131d6af758ae0 Thu Nov 15 02:49:49 CST 2012 Jiri Slaby <jslaby@suse.cz> TTY: pty, fix tty buffers 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.
PTY is one of those, here we just need to use tty_port_put instead of kfree. (Assuming tty_port_destructor does not need port->ops to be set which we change here too.)
Signed-off-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|
H A D | pty.c | diff 81c79838ca24f48e0e4bb96502d131d6af758ae0 Thu Nov 15 02:49:49 CST 2012 Jiri Slaby <jslaby@suse.cz> TTY: pty, fix tty buffers 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.
PTY is one of those, here we just need to use tty_port_put instead of kfree. (Assuming tty_port_destructor does not need port->ops to be set which we change here too.)
Signed-off-by: Jiri Slaby <jslaby@suse.cz> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
|