diff options
| author | Cyrill Gorcunov <gorcunov@openvz.org> | 2010-04-05 12:56:57 -0400 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@suse.de> | 2010-04-30 12:30:09 -0400 |
| 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 <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>
| -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) | |||
| 306 | DPRINT_ENTER(VMBUS); | 306 | DPRINT_ENTER(VMBUS); |
| 307 | 307 | ||
| 308 | if (gHvContext.SignalEventBuffer) { | 308 | if (gHvContext.SignalEventBuffer) { |
| 309 | kfree(gHvContext.SignalEventBuffer); | ||
| 309 | gHvContext.SignalEventBuffer = NULL; | 310 | gHvContext.SignalEventBuffer = NULL; |
| 310 | gHvContext.SignalEventParam = NULL; | 311 | gHvContext.SignalEventParam = NULL; |
| 311 | kfree(gHvContext.SignalEventBuffer); | ||
| 312 | } | 312 | } |
| 313 | 313 | ||
| 314 | if (gHvContext.HypercallPage) { | 314 | if (gHvContext.HypercallPage) { |
