]> asedeno.scripts.mit.edu Git - linux.git/commit
greybus: audio: gb_manager: Use valid argument while removing ida allocated id.
authorVaibhav Agarwal <vaibhav.agarwal@linaro.org>
Tue, 17 May 2016 16:59:08 +0000 (22:29 +0530)
committerGreg Kroah-Hartman <gregkh@google.com>
Wed, 18 May 2016 23:33:31 +0000 (16:33 -0700)
commitac00154a7c6a8f3b2a98c1cf3cef893af2b0abac
tree0ea92c2f64f91ecee921ad7b83e031cde1a9e426
parentef62adae82524c745640850f62ab0dfe0b580c9f
greybus: audio: gb_manager: Use valid argument while removing ida allocated id.

module->id is used as an argument to ida_simple_remove(). Since module
is already dereferenced, module->id might contain invalid data. So fix
this.

Fixes: da4cc2d0b066 ("audio:gb_manager: Use proper locking around kobject_xxx")
Signed-off-by: Vaibhav Agarwal <vaibhav.agarwal@linaro.org>
Reviewed-by: Mark Greer <mgreer@animalcreek.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@google.com>
drivers/staging/greybus/audio_manager.c