xen/fb: fix potential memory leak
authorJoe Jin <joe.jin@oracle.com>
Fri, 7 Jan 2011 10:20:54 +0000 (18:20 +0800)
committerKonrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Mon, 10 Jan 2011 15:46:31 +0000 (10:46 -0500)
commitfc550e95921e109f3778a6b2dc560d63388810ab
tree432771bf1dc084b52aa22412b49d766bd1671edc
parent731f3ab66a23dab28a359e87364f53d221b3d366
xen/fb: fix potential memory leak

This patch fixes a potential memory leak when xenfb connect to
the backend fails.

Thanks for Ian's review and comments.

[v2: reworded the commit message a bit]

Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>
Signed-off-by: Joe Jin <joe.jin@oracle.com>
Tested-by: Gurudas Pai <gurudas.pai@oracle.com>
Acked-by: Ian Campbell <ian.campbell@citrix.com>
Cc: Jeremy Fitzhardinge <jeremy@goop.org>
Cc: Andrew Morton <akpm@linux-foundation.org>
drivers/video/xen-fbfront.c