All of lore.kernel.org
 help / color / mirror / Atom feed
* [PATCH] Fix memory leak in mce_wrmsr
@ 2009-09-18  7:29 SUZUKI, Kazuhiro
  0 siblings, 0 replies; only message in thread
From: SUZUKI, Kazuhiro @ 2009-09-18  7:29 UTC (permalink / raw)
  To: xen-devel

[-- Attachment #1: Type: Text/Plain, Size: 102 bytes --]

Hi,

Fix memory leak in mce_wrmsr.

Thanks,
KAZ

Signed-off-by: Kazuhiro Suzuki <kaz@jp.fujitsu.com>


[-- Attachment #2: fix_memory_leak_in_mce_wrmsr.patch --]
[-- Type: Text/X-Patch, Size: 505 bytes --]

diff -r 72d130772f36 xen/arch/x86/cpu/mcheck/mce.c
--- a/xen/arch/x86/cpu/mcheck/mce.c	Wed Sep 16 09:30:41 2009 +0100
+++ b/xen/arch/x86/cpu/mcheck/mce.c	Fri Sep 18 16:21:31 2009 +0900
@@ -821,6 +821,7 @@
                                 "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"

[-- Attachment #3: Type: text/plain, Size: 138 bytes --]

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

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2009-09-18  7:29 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2009-09-18  7:29 [PATCH] Fix memory leak in mce_wrmsr SUZUKI, Kazuhiro

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.