mirror of
https://github.com/raspberrypi/linux.git
synced 2025-12-06 18:09:56 +00:00
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 <dmironov@mm-sol.com> Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
ee2f2074fd
commit
c77f85bbc9
@@ -91,6 +91,7 @@ void gb_audio_manager_remove_all(void)
|
|||||||
list_for_each_entry_safe(module, next, &modules_list, list) {
|
list_for_each_entry_safe(module, next, &modules_list, list) {
|
||||||
list_del(&module->list);
|
list_del(&module->list);
|
||||||
kobject_put(&module->kobj);
|
kobject_put(&module->kobj);
|
||||||
|
ida_simple_remove(&module_id, module->id);
|
||||||
}
|
}
|
||||||
|
|
||||||
is_empty = list_empty(&modules_list);
|
is_empty = list_empty(&modules_list);
|
||||||
|
|||||||
Reference in New Issue
Block a user