|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index] Re: [XenPPC] [PATCH] Fix up potential memory leaks introduced by xencomm patch
mostly Linux Kernel style NITS On Feb 7, 2007, at 4:26 PM, Jerone Young wrote: With some of the logic change from the Xencomm patch. In a fewhypercalls introduces a situation where you can potentially have memoryleaks if something fails. This patch address these issues. Signed-off-by: Jerone Young <jyoung5@xxxxxxxxxx> diff -r 37ea4cf1281a arch/powerpc/platforms/xen/hcall.c--- a/arch/powerpc/platforms/xen/hcall.c Tue Feb 06 17:10:20 2007 -0500 +++ b/arch/powerpc/platforms/xen/hcall.c Wed Feb 07 14:50:05 2007 -0600 brace on same line no braces for single line, in fact avoid the single line by pre- assigning the rc, the compiler will do the right optimization anyway. + rc = -EINVAL; I thought we agreed that xencomm_map_* failures would be ENOMEM or ENOSPC? Curlies again _______________________________________________ Xen-ppc-devel mailing list Xen-ppc-devel@xxxxxxxxxxxxxxxxxxx http://lists.xensource.com/xen-ppc-devel
|
![]() |
Lists.xenproject.org is hosted with RackSpace, monitoring our |