staging: greybus: audio_manager: fix a missing check of ida_simple_get
authorKangjie Lu <kjlu@umn.edu>
Thu, 14 Mar 2019 06:45:24 +0000 (01:45 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 29 Mar 2019 16:28:48 +0000 (17:28 +0100)
commitb5af36e3e5aa074605a4d90a89dd8f714b30909b
tree68dd101bf05f1b2c84cf8d47bf88cc9a468329df
parentd5cac52c092ad9f97f00dc0647ad65ad795c97bc
staging: greybus: audio_manager: fix a missing check of ida_simple_get

ida_simple_get could fail. The fix inserts a check for its
return value.

Signed-off-by: Kangjie Lu <kjlu@umn.edu>
Reviewed-by: Vaibhav Agarwal <vaibhav.sr@gmail.com>
Acked-by: Viresh Kumar <viresh.kumar@linaro.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/greybus/audio_manager.c