<feed xmlns='http://www.w3.org/2005/Atom'>
<title>kernel/linux.git/sound/hda/codecs/side-codecs/hda_component.c, branch linux-7.0.y</title>
<subtitle>Linux kernel stable tree (mirror)</subtitle>
<id>https://git.radix-linux.su/kernel/linux.git/atom?h=linux-7.0.y</id>
<link rel='self' href='https://git.radix-linux.su/kernel/linux.git/atom?h=linux-7.0.y'/>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/'/>
<updated>2025-10-11T06:28:52+00:00</updated>
<entry>
<title>ALSA: hda: Fix missing pointer check in hda_component_manager_init function</title>
<updated>2025-10-11T06:28:52+00:00</updated>
<author>
<name>Denis Arefev</name>
<email>arefev@swemel.ru</email>
</author>
<published>2025-10-09T10:50:47+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=1cf11d80db5df805b538c942269e05a65bcaf5bc'/>
<id>urn:sha1:1cf11d80db5df805b538c942269e05a65bcaf5bc</id>
<content type='text'>
The __component_match_add function may assign the 'matchptr' pointer
the value ERR_PTR(-ENOMEM), which will subsequently be dereferenced.

The call stack leading to the error looks like this:

hda_component_manager_init
|-&gt; component_match_add
    |-&gt; component_match_add_release
        |-&gt; __component_match_add ( ... ,**matchptr, ... )
            |-&gt; *matchptr = ERR_PTR(-ENOMEM);       // assign
|-&gt; component_master_add_with_match( ...  match)
    |-&gt; component_match_realloc(match, match-&gt;num); // dereference

Add IS_ERR() check to prevent the crash.

Found by Linux Verification Center (linuxtesting.org) with SVACE.

Fixes: ae7abe36e352 ("ALSA: hda/realtek: Add CS35L41 support for Thinkpad laptops")
Cc: stable@vger.kernel.org
Signed-off-by: Denis Arefev &lt;arefev@swemel.ru&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
</content>
</entry>
<entry>
<title>ALSA: hda/component: Use guard() for mutex locks</title>
<updated>2025-08-29T09:52:15+00:00</updated>
<author>
<name>Takashi Iwai</name>
<email>tiwai@suse.de</email>
</author>
<published>2025-08-27T07:28:55+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=129cb64e39892982beb0059da2037d3f58b27065'/>
<id>urn:sha1:129cb64e39892982beb0059da2037d3f58b27065</id>
<content type='text'>
Replace the manual mutex lock/unlock pairs with guard().

Only code refactoring, and no behavior change.

Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Link: https://patch.msgid.link/20250827072916.31933-16-tiwai@suse.de
</content>
</entry>
<entry>
<title>ALSA: hda: Move codec drivers into sound/hda/codecs directory</title>
<updated>2025-07-11T07:55:37+00:00</updated>
<author>
<name>Takashi Iwai</name>
<email>tiwai@suse.de</email>
</author>
<published>2025-07-09T16:04:09+00:00</published>
<link rel='alternate' type='text/html' href='https://git.radix-linux.su/kernel/linux.git/commit/?id=6014e9021b28e634935c776c0271b5cbcabdc5d6'/>
<id>urn:sha1:6014e9021b28e634935c776c0271b5cbcabdc5d6</id>
<content type='text'>
Now move the all remaining codec drivers from sound/pci/hda to
sound/hda/codecs subdirectory.  Some drivers are put under the further
vendor subdirectory, and the vendor helper code (*_helper.c) are put
under helpers subdirectory.  Also the sub-codec drivers are moved under
a different subdirectory, sound/hda/codecs/sub-codecs, for
distinguishing from the main HD-audio codec drivers.

The prefix patch_ and hda_ as well as the suffix _helper are dropped
from file names as they are mostly superfluous.

No functional changes but just file path shuffling.

Reviewed-by: Richard Fitzgerald &lt;rf@opensource.cirrus.com&gt;
Signed-off-by: Takashi Iwai &lt;tiwai@suse.de&gt;
Link: https://patch.msgid.link/20250709160434.1859-7-tiwai@suse.de
</content>
</entry>
</feed>
