提交 fa8ad025 编写于 作者: C Cyrill Gorcunov 提交者: Greg Kroah-Hartman

Staging: hv: Fix up memory leak on HvCleanup

Don't assign NULL too early
Signed-off-by: NCyrill Gorcunov <gorcunov@openvz.org>
Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: stable <stable@kernel.org>
Signed-off-by: NGreg Kroah-Hartman <gregkh@suse.de>
上级 95beae90
...@@ -306,9 +306,9 @@ void HvCleanup(void) ...@@ -306,9 +306,9 @@ void HvCleanup(void)
DPRINT_ENTER(VMBUS); DPRINT_ENTER(VMBUS);
if (gHvContext.SignalEventBuffer) { if (gHvContext.SignalEventBuffer) {
kfree(gHvContext.SignalEventBuffer);
gHvContext.SignalEventBuffer = NULL; gHvContext.SignalEventBuffer = NULL;
gHvContext.SignalEventParam = NULL; gHvContext.SignalEventParam = NULL;
kfree(gHvContext.SignalEventBuffer);
} }
if (gHvContext.HypercallPage) { if (gHvContext.HypercallPage) {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册