summaryrefslogtreecommitdiff
path: root/rust/helpers/platform.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2025-09-02 19:18:21 +0200
committerMark Brown <broonie@kernel.org>2025-09-08 18:39:12 +0100
commit4336efb59ef364e691ef829a73d9dbd4d5ed7c7b (patch)
tree364192d6a0188673ac5519bcb69b5f2e55989980 /rust/helpers/platform.c
parentfba404e4b4af4f4f747bb0e41e9fff7d03c7bcc0 (diff)
ASoC: Intel: bytcr_rt5651: Fix invalid quirk input mapping
When an invalid value is passed via quirk option, currently bytcr_rt5640 driver just ignores and leaves as is, which may lead to unepxected results like OOB access. This patch adds the sanity check and corrects the input mapping to the certain default value if an invalid value is passed. Fixes: 64484ccee7af ("ASoC: Intel: bytcr_rt5651: Set card long_name based on quirks") Signed-off-by: Takashi Iwai <tiwai@suse.de> Message-ID: <20250902171826.27329-4-tiwai@suse.de> Signed-off-by: Mark Brown <broonie@kernel.org>
Diffstat (limited to 'rust/helpers/platform.c')
0 files changed, 0 insertions, 0 deletions