Skip to content

Commit

Permalink
greybus: audio: Fix incorrect counting of 'ida'
Browse files Browse the repository at this point in the history
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>
  • Loading branch information
Dinko Mironov authored and Greg Kroah-Hartman committed May 5, 2016
1 parent ee2f207 commit c77f85b
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions drivers/staging/greybus/audio_manager.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
Expand Down

0 comments on commit c77f85b

Please sign in to comment.