mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
synced 2026-04-29 16:25:42 -04:00
greybus: audio: Fix widget pointer update during control parsing
widget pointer was incorrectly modfied while parsing kcontrol 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>
This commit is contained in:
committed by
Greg Kroah-Hartman
parent
1472ec67f7
commit
6da549ec85
@@ -834,7 +834,7 @@ static int gbaudio_tplg_process_widgets(struct gbaudio_module_info *module,
|
||||
list_add(&widget->list, &module->widget_list);
|
||||
ncontrols = curr->ncontrols;
|
||||
curr++;
|
||||
curr += ncontrols * sizeof(struct gb_audio_control);
|
||||
curr = (void *)curr + ncontrols*sizeof(struct gb_audio_control);
|
||||
}
|
||||
module->dapm_widgets = dapm_widgets;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user