projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
2eb7f20
)
Drivers: hv: Fix a memory leak
author
K. Y. Srinivasan
<kys@microsoft.com>
Mon, 12 Dec 2011 17:29:16 +0000
(09:29 -0800)
committer
Greg Kroah-Hartman
<gregkh@suse.de>
Mon, 12 Dec 2011 22:23:20 +0000
(14:23 -0800)
There was a memory leak in a failure path in vmbus_process_offer().
Fix it.
Signed-off-by: K. Y. Srinivasan <kys@microsoft.com>
Signed-off-by: Haiyang Zhang <haiyangz@microsoft.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
drivers/hv/channel_mgmt.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/hv/channel_mgmt.c
b/drivers/hv/channel_mgmt.c
index 12b85ff957fd2d56b2ef42bf829cc1f74e7a26d6..b91af50875e9ae4292009bc91e28dd265837aa83 100644
(file)
--- a/
drivers/hv/channel_mgmt.c
+++ b/
drivers/hv/channel_mgmt.c
@@
-287,6
+287,7
@@
static void vmbus_process_offer(struct work_struct *work)
spin_lock_irqsave(&vmbus_connection.channel_lock, flags);
list_del(&newchannel->listentry);
spin_unlock_irqrestore(&vmbus_connection.channel_lock, flags);
+ kfree(newchannel->device_obj);
free_channel(newchannel);
} else {