serial: ifx6x60: fix memory leak
If tty_register_driver() failed then tty_driver is still alive. Free it with put_tty_driver(). Signed-off-by: NVasiliy Kulikov <segoon@openwall.com> Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
Showing
想要评论请 注册 或 登录