]> xenbits.xensource.com Git - xen.git/commit
Fix domain reference leaks
authorKeir Fraser <keir.fraser@citrix.com>
Wed, 10 Feb 2010 09:18:43 +0000 (09:18 +0000)
committerKeir Fraser <keir.fraser@citrix.com>
Wed, 10 Feb 2010 09:18:43 +0000 (09:18 +0000)
commitb14339379a571840ce040fce563580c09fb0a1f5
tree556719b9ddc32870730ea8657fda6ddcfba67203
parent948593955a433efb249034849be0313e34acfbfa
Fix domain reference leaks

Besides two unlikely/rarely hit ones in x86 code, the main offender
was tmh_client_from_cli_id(), which didn't even have a counterpart
(albeit it had a comment correctly saying that it causes d->refcnt to
get incremented). Unfortunately(?) this required a bit of code
restructuring (as I needed to change the code anyway, I also fixed
a couple os missing bounds checks which would sooner or later be
reported as security vulnerabilities), so I would hope Dan could give
it his blessing before it gets applied.

Signed-off-by: Jan Beulich <jbeulich@novell.com>
xen/arch/x86/debug.c
xen/arch/x86/mm.c
xen/common/tmem.c
xen/common/tmem_xen.c
xen/include/xen/tmem_xen.h