diff options
| author | Cyrill Gorcunov <[email protected]> | 2010-04-05 20:56:57 +0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <[email protected]> | 2010-04-30 09:30:09 -0700 |
| commit | fa8ad0257ea256381126ecf447694622216c600f (patch) | |
| tree | d89c2ed6c0aa6b49fb9badc8d4132c6ddcd83b86 | |
| parent | 95beae90aa4afce57fb28e6f8238b78217bd7c98 (diff) | |
Staging: hv: Fix up memory leak on HvCleanup
Don't assign NULL too early
Signed-off-by: Cyrill Gorcunov <[email protected]>
Cc: Hank Janssen <[email protected]>
Cc: Haiyang Zhang <[email protected]>
Cc: stable <[email protected]>
Signed-off-by: Greg Kroah-Hartman <[email protected]>
| -rw-r--r-- | drivers/staging/hv/Hv.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/staging/hv/Hv.c b/drivers/staging/hv/Hv.c index 5d53889fb4a4..3a1112d29aeb 100644 --- a/drivers/staging/hv/Hv.c +++ b/drivers/staging/hv/Hv.c @@ -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) { |