summaryrefslogtreecommitdiffstats
path: root/arch/ia64
diff options
context:
space:
mode:
authorLin Yi2019-05-10 06:22:57 +0200
committerGreg Kroah-Hartman2019-05-24 10:09:12 +0200
commit8c8af41d24c73c6a8b24468bdc53e52b390e4582 (patch)
treef9c4a80b6ad98d5a86d2c9c39deeb60bafa2773b /arch/ia64
parentvt/fbcon: deinitialize resources in visual_init() after failed memory allocation (diff)
downloadkernel-qcow2-linux-8c8af41d24c73c6a8b24468bdc53e52b390e4582.tar.gz
kernel-qcow2-linux-8c8af41d24c73c6a8b24468bdc53e52b390e4582.tar.xz
kernel-qcow2-linux-8c8af41d24c73c6a8b24468bdc53e52b390e4582.zip
tty: tty_io: fix driver refcount imbalance on error path
tty_lookup_driver take a reference to the struct tty_driver, but forget to release it on the error path, lead to a memory leak. add a tty_driver_kref_put before error return. Signed-off-by: Lin Yi <teroincn@163.com> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'arch/ia64')
0 files changed, 0 insertions, 0 deletions