]> Git Repo - linux.git/commit
TTY: pty, stop passing NULL to free_tty_struct
authorJiri Slaby <[email protected]>
Tue, 7 Aug 2012 19:47:26 +0000 (21:47 +0200)
committerGreg Kroah-Hartman <[email protected]>
Fri, 10 Aug 2012 20:27:50 +0000 (13:27 -0700)
commit6f9ea7ad7be10dca95e7ca57221c5f81be48d852
tree83749543072a6c0194ae4f065c023f6be2646185
parent090abf7b91645c1936ba959b1e1cd6d09110779c
TTY: pty, stop passing NULL to free_tty_struct

In case alloc_tty_struct fails in pty_common_install, we pass NULL to
free_tty_struct. This is invalid as the function is not ready to cope
with that. And even if it was, it is not nice to do that anyway.

Signed-off-by: Jiri Slaby <[email protected]>
Reported-by: Dan Carpenter <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
drivers/tty/pty.c
This page took 0.053884 seconds and 4 git commands to generate.