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:
0b57664
)
iucv: fix memory leak in cpu hotplug error path.
author
Akinobu Mita
<
[email protected]
>
Tue, 15 Jul 2008 09:09:53 +0000
(
02:09
-0700)
committer
David S. Miller
<
[email protected]
>
Tue, 15 Jul 2008 09:09:53 +0000
(
02:09
-0700)
Fix memory leak in error path in CPU_UP_PREPARE notifier.
Signed-off-by: Akinobu Mita <
[email protected]
>
Signed-off-by: David S. Miller <
[email protected]
>
net/iucv/iucv.c
patch
|
blob
|
history
diff --git
a/net/iucv/iucv.c
b/net/iucv/iucv.c
index 531a206ce7a6ee78e4b3e7b00faaa10a7a8809bd..d8e0635aace0198e9267436e3a86f83977e6f3ad 100644
(file)
--- a/
net/iucv/iucv.c
+++ b/
net/iucv/iucv.c
@@
-567,8
+567,11
@@
static int __cpuinit iucv_cpu_notify(struct notifier_block *self,
return NOTIFY_BAD;
iucv_param[cpu] = kmalloc_node(sizeof(union iucv_param),
GFP_KERNEL|GFP_DMA, cpu_to_node(cpu));
- if (!iucv_param[cpu])
+ if (!iucv_param[cpu]) {
+ kfree(iucv_irq_data[cpu]);
+ iucv_irq_data[cpu] = NULL;
return NOTIFY_BAD;
+ }
break;
case CPU_UP_CANCELED:
case CPU_UP_CANCELED_FROZEN: