From 26b7ba66c1d698e7d377f61d310b5cfa1cfcf2a0 Mon Sep 17 00:00:00 2001 From: Johan Hovold Date: Tue, 3 Nov 2015 12:11:25 +0100 Subject: [PATCH] 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 --- drivers/staging/greybus/endo.c | 1 + 1 file changed, 1 insertion(+) 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); } -- 2.20.1