From c77f85bbc91acafeafd4143a23a225fe81c7e294 Mon Sep 17 00:00:00 2001 From: Dinko Mironov Date: Thu, 5 May 2016 19:58:22 +0300 Subject: [PATCH] greybus: audio: Fix incorrect counting of 'ida' Function gb_audio_manager_remove_all() to remove all audio modules, doesn't control correctly 'ida' counting. Signed-off-by: Dinko Mironov Signed-off-by: Greg Kroah-Hartman --- drivers/staging/greybus/audio_manager.c | 1 + 1 file changed, 1 insertion(+) diff --git a/drivers/staging/greybus/audio_manager.c b/drivers/staging/greybus/audio_manager.c index 619bdee..9def014 100644 --- a/drivers/staging/greybus/audio_manager.c +++ b/drivers/staging/greybus/audio_manager.c @@ -91,6 +91,7 @@ void gb_audio_manager_remove_all(void) list_for_each_entry_safe(module, next, &modules_list, list) { list_del(&module->list); kobject_put(&module->kobj); + ida_simple_remove(&module_id, module->id); } is_empty = list_empty(&modules_list); -- 2.7.4