staging: dgap: fix memory leak caused by double allocation of tty_structs
authorDaeseok Youn <daeseok.youn@gmail.com>
Thu, 6 Nov 2014 10:27:11 +0000 (19:27 +0900)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 7 Nov 2014 17:30:22 +0000 (09:30 -0800)
commit429161d164491f430ddbc591f45dc2cd39e0e8a1
tree011bc9351a4029a7abe051fd71db7a8267d13edf
parentdc3cfcd3f4804c9bf71e3b6152df6eb957856735
staging: dgap: fix memory leak caused by double allocation of tty_structs

The tty_struct of serial_driver and print_driver were getting
allocated twice. One is allocated in tty_alloc_driver(), the other
is in dgap_tty_register(). So remove these in dgap_tty_register().

Signed-off-by: Daeseok Youn <daeseok.youn@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/dgap/dgap.c
This page took 0.039786 seconds and 5 git commands to generate.