commit | 15c726ea5218b4e40d2331bd8b25b85848f73c42 | [log] [tgz] |
---|---|---|
author | Vaibhav Agarwal <vaibhav.agarwal@linaro.org> | Tue Aug 16 12:36:50 2016 +0530 |
committer | Greg Kroah-Hartman <gregkh@google.com> | Thu Aug 18 17:32:39 2016 +0200 |
tree | 8b73b419b424ec82b413ba4e74523e22b878c711 | |
parent | 0900845ab741dd7b0b8b3f03ded0ffc6a348dd90 [diff] |
greybus: audio: Add check for invalid index while mapping control While mapping control id to define DAPM routes, invalid control index may cause kernel oops. Add extra check to validate index while mapping names to control_id. 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>