Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 65e5c026 authored by Akinobu Mita's avatar Akinobu Mita Committed by Roland Dreier
Browse files

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: default avatarAkinobu Mita <akinobu.mita@gmail.com>
Signed-off-by: default avatarAndrew Morton <akpm@linux-foundation.org>
Acked-by: default avatarHoang-Nam Nguyen <hnguyen@de.ibm.com>
Signed-off-by: default avatarRoland Dreier <rolandd@cisco.com>
parent 6bdd61d8
Loading
Loading
Loading
Loading
+2 −0
Original line number Diff line number Diff line
@@ -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;