From: Daeseok Youn Date: Thu, 6 Nov 2014 10:27:11 +0000 (+0900) Subject: staging: dgap: fix memory leak caused by double allocation of tty_structs X-Git-Tag: omap-for-v3.20/drop-legacy-3517~70^2~357 X-Git-Url: http://git.openpandora.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=429161d164491f430ddbc591f45dc2cd39e0e8a1;p=pandora-kernel.git 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 Signed-off-by: Greg Kroah-Hartman --- Reading git-diff-tree failed