]> git.proxmox.com Git - mirror_ubuntu-zesty-kernel.git/commit
greybus: uart: Fix the memory leak in connection init
authorPhong Tran <tranmanphong@gmail.com>
Mon, 1 Jun 2015 15:19:45 +0000 (22:19 +0700)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 4 Jun 2015 05:04:18 +0000 (14:04 +0900)
commit55f2291142efa42acab362bf71b52e03bd275a42
treedd48526fc0460c41dd9b1e27059e381aa316d95c
parent3cb494cd6c5d3ca1c381553f5379ca9577f8e871
greybus: uart: Fix the memory leak in connection init

If alloc minor is error, gb_tty should free.

Signed-off-by: Phong Tran <tranmanphong@gmail.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/uart.c