From: Johan Hovold Date: Tue, 3 Nov 2015 11:11:25 +0000 (+0100) Subject: greybus: endo: fix ida memory leak X-Git-Tag: v4.9.8~1233^2~378^2~21^2~1071 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=26b7ba66c1d698e7d377f61d310b5cfa1cfcf2a0;p=platform%2Fkernel%2Flinux-rpi3.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 726b1d3..7f24c79 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); }