mirror of https://gitee.com/openkylin/linux.git
IB/ehca: Fix memleak on module unloading
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>
This commit is contained in:
parent
6bdd61d876
commit
65e5c02621
|
@ -756,6 +756,8 @@ void ehca_destroy_comp_pool(void)
|
||||||
if (cpu_online(i))
|
if (cpu_online(i))
|
||||||
destroy_comp_task(pool, i);
|
destroy_comp_task(pool, i);
|
||||||
}
|
}
|
||||||
|
free_percpu(pool->cpu_comp_tasks);
|
||||||
|
kfree(pool);
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Reference in New Issue