mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-10-29 23:53:32 +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:
parent
ee2f2074fd
commit
c77f85bbc9
1 changed files with 1 additions and 0 deletions
|
@ -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);
|
||||
|
|
Loading…
Reference in a new issue