jsm: Remove the uart port on errors
authorBreno Leitao <leitao@linux.vnet.ibm.com>
Thu, 7 Oct 2010 16:40:42 +0000 (13:40 -0300)
committerGreg Kroah-Hartman <gregkh@suse.de>
Fri, 22 Oct 2010 17:20:10 +0000 (10:20 -0700)
If kzmalloc fails, the uart port is not removed causing a leak.
This patch just add another label that removes the uart when the
kzmalloc fails.

Signed-off-by: Breno Leitao <leitao@linux.vnet.ibm.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>

No differences found