From: Johan Hovold Date: Tue, 3 Nov 2015 11:11:25 +0000 (+0100) Subject: greybus: endo: fix ida memory leak X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=26b7ba66c1d698e7d377f61d310b5cfa1cfcf2a0;p=GitHub%2Fmoto-9609%2Fandroid_kernel_motorola_exynos9610.git greybus: endo: fix ida memory leak Fix yet another ida memory leak due to failure to call the destructor. Signed-off-by: Johan Hovold Reviewed-by: Viresh Kumar Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/staging/greybus/endo.c b/drivers/staging/greybus/endo.c index 726b1d309219..7f24c79230a5 100644 --- a/drivers/staging/greybus/endo.c +++ b/drivers/staging/greybus/endo.c @@ -547,4 +547,5 @@ int __init gb_endo_init(void) void gb_endo_exit(void) { + ida_destroy(&greybus_endo_id_map); }