[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Xen-changelog] [xen-unstable] x86: Fix memory leak in mce_wrmsr



# HG changeset patch
# User Keir Fraser <keir.fraser@xxxxxxxxxx>
# Date 1253602866 -3600
# Node ID aa32a8edbf0347545a07971ffc2933ca06ffb4b5
# Parent  6c178ba4d86a0380ee1a07f8c8632421b5539514
x86: Fix memory leak in mce_wrmsr

Signed-off-by: Kazuhiro Suzuki <kaz@xxxxxxxxxxxxxx>
---
 xen/arch/x86/cpu/mcheck/mce.c |    1 +
 1 files changed, 1 insertion(+)

diff -r 6c178ba4d86a -r aa32a8edbf03 xen/arch/x86/cpu/mcheck/mce.c
--- a/xen/arch/x86/cpu/mcheck/mce.c     Tue Sep 22 08:00:36 2009 +0100
+++ b/xen/arch/x86/cpu/mcheck/mce.c     Tue Sep 22 08:01:06 2009 +0100
@@ -821,6 +821,7 @@ int mce_wrmsr(u32 msr, u64 val)
                                 "Node, nr_injection %u\n",
                                 d->arch.vmca_msrs.nr_injection);
                 list_del(&entry->list);
+                xfree(entry);
             }
             else
                 gdprintk(XENLOG_WARNING, "MCE: Not found HVM guest"

_______________________________________________
Xen-changelog mailing list
Xen-changelog@xxxxxxxxxxxxxxxxxxx
http://lists.xensource.com/xen-changelog


 


Rackspace

Lists.xenproject.org is hosted with RackSpace, monitoring our
servers 24x7x365 and backed by RackSpace's Fanatical Support®.