]> www.infradead.org Git - users/hch/misc.git/commitdiff
ASoC: qcom: audioreach: convert to cpu endainess type before accessing
authorSrinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Mon, 25 Aug 2025 10:12:47 +0000 (11:12 +0100)
committerMark Brown <broonie@kernel.org>
Mon, 1 Sep 2025 17:55:17 +0000 (18:55 +0100)
Looks like some of the members of module config are accessed directly
without converting their endainess to cpu type.

Fix this by using le32_to_cpu() where required.

Fixes: da9881d00153 ("ASoC: qcom: audioreach: add support for SMECNS module")
Reported-by: kernel test robot <lkp@intel.com>
Closes: https://lore.kernel.org/oe-kbuild-all/202508230830.Rkp7HHbG-lkp@intel.com
Signed-off-by: Srinivas Kandagatla <srinivas.kandagatla@oss.qualcomm.com>
Link: https://patch.msgid.link/20250825101247.152619-4-srinivas.kandagatla@oss.qualcomm.com
Signed-off-by: Mark Brown <broonie@kernel.org>
sound/soc/qcom/qdsp6/audioreach.c

index f4c53e84b4dc522302ece90592c62d7451dc0764..bbfd51db879766445fa0fea564659fabd06b59ad 100644 (file)
@@ -815,7 +815,7 @@ static int audioreach_set_module_config(struct q6apm_graph *graph,
                                        struct audioreach_module *module,
                                        struct audioreach_module_config *cfg)
 {
-       int payload_size = module->data->size;
+       int payload_size = le32_to_cpu(module->data->size);
        struct gpr_pkt *pkt;
        int rc;
        void *p;