Staging: hv: Fix up memory leak on HvCleanup
Don't assign NULL too early Signed-off-by: Cyrill Gorcunov <gorcunov@openvz.org> Cc: Hank Janssen <hjanssen@microsoft.com> Cc: Haiyang Zhang <haiyangz@microsoft.com> Cc: stable <stable@kernel.org> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
This commit is contained in:
parent
95beae90aa
commit
fa8ad0257e
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Add table
Reference in a new issue