]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
ASoC: SOF: Refactor rx function for fuzzing
authorCurtis Malainey <cujomalainey@chromium.org>
Thu, 8 Jun 2023 22:18:15 +0000 (15:18 -0700)
committerMark Brown <broonie@kernel.org>
Fri, 9 Jun 2023 09:44:39 +0000 (10:44 +0100)
commit12c41c779fad54714ce4901757374f6006a88644
treefb73d78e09922703a663623945dcf97878ce70ec
parente352f31a863f47adfa54c76b633a21b1ed562387
ASoC: SOF: Refactor rx function for fuzzing

Refactor the function so reading the data is done outside the work
function so fuzzing can pass data directly into the work callbacks.

Also expose the inner function outside the module so we can call it from
the injector.

Signed-off-by: Curtis Malainey <cujomalainey@chromium.org>
Reviewed-by: Ranjani Sridharan <ranjani.sridharan@linux.intel.com>
Reviewed-by: Pierre-Louis Bossart <pierre-louis.bossart@linux.intel.com>
Reviewed-by: Péter Ujfalusi <peter.ujfalusi@linux.intel.com>
Link: https://lore.kernel.org/r/20230608221822.2825786-1-cujomalainey@chromium.org
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/sof/ipc3-priv.h
sound/soc/sof/ipc3.c