greybus: endo: fix ida memory leak
authorJohan Hovold <johan@hovoldconsulting.com>
Tue, 3 Nov 2015 11:11:25 +0000 (12:11 +0100)
committerGreg Kroah-Hartman <gregkh@google.com>
Thu, 5 Nov 2015 04:20:23 +0000 (20:20 -0800)
Fix yet another ida memory leak due to failure to call the destructor.

Signed-off-by: Johan Hovold <johan@hovoldconsulting.com>
Reviewed-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/endo.c

index 726b1d3..7f24c79 100644 (file)
@@ -547,4 +547,5 @@ int __init gb_endo_init(void)
 
 void gb_endo_exit(void)
 {
+       ida_destroy(&greybus_endo_id_map);
 }