Jaroslav Kysela d62ccf6002 ASoC: codecs: hdac_hdmi: Validate written enum value
JIRA: https://issues.redhat.com/browse/RHEL-193253

commit 0b08baeccdcf52fad328ad645f5b4fbee04eea34
Author: HyeongJun An <sammiee5311@gmail.com>
Date: Tue Jun 9 21:43:13 2026 +0900

    ASoC: codecs: hdac_hdmi: Validate written enum value

    hdac_hdmi_set_pin_port_mux() uses the written enum value to index the
    texts array before calling snd_soc_dapm_put_enum_double(), which validates
    that the value is within the enum item range.

    An out-of-range value can therefore make the driver read past the texts
    array before the helper rejects the write. Move the lookup after the helper
    has accepted the value.

    Fixes: 4a3478debf ("ASoC: hdac_hdmi: Add jack reporting")
    Assisted-by: Claude:claude-opus-4-8
    Signed-off-by: HyeongJun An <sammiee5311@gmail.com>
    Link: https://patch.msgid.link/20260609124317.38046-2-sammiee5311@gmail.com
    Signed-off-by: Mark Brown <broonie@kernel.org>

Signed-off-by: Jaroslav Kysela <jkysela@redhat.com>
2026-07-29 10:44:39 +02:00
2026-07-01 16:15:37 -04:00
2026-07-15 15:02:37 +00:00
2026-07-28 04:35:43 -04:00
2026-07-01 16:16:28 -04:00

Linux kernel
============

There are several guides for kernel developers and users. These guides can
be rendered in a number of formats, like HTML and PDF. Please read
Documentation/admin-guide/README.rst first.

In order to build the documentation, use ``make htmldocs`` or
``make pdfdocs``.  The formatted documentation can also be read online at:

    https://www.kernel.org/doc/html/latest/

There are various text files in the Documentation/ subdirectory,
several of them using the reStructuredText markup notation.

Please read the Documentation/process/changes.rst file, as it contains the
requirements for building and running the kernel, and information about
the problems which may result by upgrading your kernel.
S
Description
No description provided
Readme
2.8 GiB
Languages
C 97.5%
Assembly 1%
Shell 0.6%
Python 0.3%
Makefile 0.3%