Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit fa8ad025 authored by Cyrill Gorcunov's avatar Cyrill Gorcunov Committed by Greg Kroah-Hartman
Browse files

Staging: hv: Fix up memory leak on HvCleanup



Don't assign NULL too early

Signed-off-by: default avatarCyrill Gorcunov <gorcunov@openvz.org>
Cc: Hank Janssen <hjanssen@microsoft.com>
Cc: Haiyang Zhang <haiyangz@microsoft.com>
Cc: stable <stable@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@suse.de>
parent 95beae90
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -306,9 +306,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) {