OSDN Git Service
(root)
/
android-x86
/
kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6bdd61d
)
IB/ehca: Fix memleak on module unloading
author
Akinobu Mita
<akinobu.mita@gmail.com>
Tue, 6 Feb 2007 00:21:09 +0000
(16:21 -0800)
committer
Roland Dreier
<rolandd@cisco.com>
Sat, 10 Feb 2007 16:00:49 +0000
(08:00 -0800)
Percpu data is not freed on module unloading.
Cc: Heiko Carstens <heiko.carstens@de.ibm.com>
Cc: Christoph Raisch <raisch@de.ibm.com>
Signed-off-by: Akinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Acked-by: Hoang-Nam Nguyen <hnguyen@de.ibm.com>
Signed-off-by: Roland Dreier <rolandd@cisco.com>
drivers/infiniband/hw/ehca/ehca_irq.c
patch
|
blob
|
history
diff --git
a/drivers/infiniband/hw/ehca/ehca_irq.c
b/drivers/infiniband/hw/ehca/ehca_irq.c
index
c069be8
..
6c4f9f9
100644
(file)
--- a/
drivers/infiniband/hw/ehca/ehca_irq.c
+++ b/
drivers/infiniband/hw/ehca/ehca_irq.c
@@
-756,6
+756,8
@@
void ehca_destroy_comp_pool(void)
if (cpu_online(i))
destroy_comp_task(pool, i);
}
+ free_percpu(pool->cpu_comp_tasks);
+ kfree(pool);
#endif
return;