Re: [PATCH 2/2] ALSA: hda/conexant: Add NULL check for dc_mode_path

Takashi Iwai <[email protected]>
Newsgroups org.kernel.vger.linux-sound,org.kernel.vger.linux-kernel
Message-ID <[email protected]>
On Wed, 29 Jul 2026 09:09:35 +0200,
[email protected] wrote:
> 
> From: wangdicheng <[email protected]>
> 
> snd_hda_add_new_path() returns NULL when no path exists between the
> given NIDs, but olpc_xo_update_mic_pins() passes dc_mode_path
> straight to snd_hda_activate_path() which dereferences it without
> checking. Add the missing NULL guards, same as the local path
> variable already has in the same function.
> 
> Signed-off-by: wangdicheng <[email protected]>

Applied to for-next branch now.  Thanks.


Takashi
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.