Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6da549ec authored by Vaibhav Agarwal's avatar Vaibhav Agarwal Committed by Greg Kroah-Hartman
Browse files

greybus: audio: Fix widget pointer update during control parsing



widget pointer was incorrectly modfied while parsing kcontrol

Signed-off-by: default avatarVaibhav Agarwal <vaibhav.agarwal@linaro.org>
Reviewed-by: default avatarMark Greer <mgreer@animalcreek.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@google.com>
parent 1472ec67
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -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;