]> err.no Git - linux-2.6/commitdiff
IB/ehca: Fix memleak on module unloading
authorAkinobu Mita <akinobu.mita@gmail.com>
Tue, 6 Feb 2007 00:21:09 +0000 (16:21 -0800)
committerRoland 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

index c069be8cbcb291868b0419e8867e48d8b7acc6e2..6c4f9f91b15df3e10f9e417f3deac51abcfd4077 100644 (file)
@@ -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;