serial: max3107: Fix memory leaks when returning on error
authorDavidlohr Bueso <dave@gnu.org>
Mon, 13 Sep 2010 16:08:11 +0000 (12:08 -0400)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:20:03 +0000 (10:20 -0700)
commit68707539df1e9d12435e5d54ffedc7ded50fcd01
tree5121df6107dce229fca976f7b4d87d5ff177d4fa
parent91efa75ce14db63d1eb47a2935bc7332de243f8d
serial: max3107: Fix memory leaks when returning on error

Fix memory leaks in max3107_probe() when returning on error.

Signed-off-by: Davidlohr Bueso <dave@gnu.org>
Acked-by: Alan Cox <alan@linux.intel.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/serial/max3107.c