projects
/
openwrt
/
staging
/
blogic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
95beae9
)
Staging: hv: Fix up memory leak on HvCleanup
author
Cyrill Gorcunov
<
[email protected]
>
Mon, 5 Apr 2010 16:56:57 +0000
(20:56 +0400)
committer
Greg Kroah-Hartman
<
[email protected]
>
Fri, 30 Apr 2010 16:30:09 +0000
(09:30 -0700)
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]
>
drivers/staging/hv/Hv.c
patch
|
blob
|
history
diff --git
a/drivers/staging/hv/Hv.c
b/drivers/staging/hv/Hv.c
index 5d53889fb4a42196d88bfc590eaadd2339a21f63..3a1112d29aeb731962939b85bc70c571c83b1376 100644
(file)
--- 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) {