* [PATCH] staging, hv: Fix up memory leak on HvCleanup
@ 2010-04-05 16:56 Cyrill Gorcunov
0 siblings, 0 replies; only message in thread
From: Cyrill Gorcunov @ 2010-04-05 16:56 UTC (permalink / raw)
To: Greg KH; +Cc: Haiyang Zhang, Hank Janssen, LKML
Don't assign NULL too early
Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org>
---
drivers/staging/hv/Hv.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
Index: linux-2.6.git/drivers/staging/hv/Hv.c
=====================================================================
--- linux-2.6.git.orig/drivers/staging/hv/Hv.c
+++ linux-2.6.git/drivers/staging/hv/Hv.c
@@ -305,9 +305,9 @@ void HvCleanup(void)
DPRINT_ENTER(VMBUS);
if (gHvContext.SignalEventBuffer) {
+ kfree(gHvContext.SignalEventBuffer);
gHvContext.SignalEventBuffer = NULL;
gHvContext.SignalEventParam = NULL;
- kfree(gHvContext.SignalEventBuffer);
}
if (gHvContext.HypercallPage) {
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2010-04-05 16:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-04-05 16:56 [PATCH] staging, hv: Fix up memory leak on HvCleanup Cyrill Gorcunov
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®