From: Takashi Iwai <tiwai@suse.de>
To: Sreeraj S Kurup <sreekuttan2156239@gmail.com>
Cc: perex@perex.cz, tiwai@suse.de, linux-kernel@vger.kernel.org,
linux-sound@vger.kernel.org
Subject: Re: [PATCH v2] ALSA: hda: intel: Validate master count before creating link mask
Date: Sun, 06 Dec 2026 12:09:28 +0100 [thread overview]
Message-ID: <87a4mism1j.wl-tiwai@suse.de> (raw)
In-Reply-To: <20261205151840.2821-1-sreekuttan2156239@gmail.com>
On Sat, 05 Dec 2026 16:18:40 +0100,
Sreeraj S Kurup wrote:
>
> The driver uses GENMASK(count - 1, 0) to create the link
> mask from the mipi-sdw-master-count ACPI property.
>
> However, the link mask is created before validating the
> master count. If firmware reports a count of zero, the
> unsigned subtraction count - 1 underflows. If the count
> exceeds SDW_INTEL_MAX_LINKS, an invalid link mask may
> be generated.
>
> Move link mask creation after the existing count checks
> to ensure the count is valid before calling GENMASK().
>
> Fixes: 71dce222d586 ("ALSA/hda: intel-sdw-acpi: add support for sdw-manager-list property read")
> Signed-off-by: Sreeraj S Kurup <sreekuttan2156239@gmail.com>
Applied to for-next branch. Thanks.
Takashi
prev parent reply other threads:[~2026-12-06 11:09 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-12-05 14:31 [PATCH] ALSA: hda: intel: Validate master count before creating link mask Sreeraj S Kurup
2026-12-05 14:46 ` sashiko-bot
2026-12-05 15:18 ` [PATCH v2] " Sreeraj S Kurup
2026-12-06 11:09 ` Takashi Iwai [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=87a4mism1j.wl-tiwai@suse.de \
--to=tiwai@suse.de \
--cc=linux-kernel@vger.kernel.org \
--cc=linux-sound@vger.kernel.org \
--cc=perex@perex.cz \
--cc=sreekuttan2156239@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox