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

From: Takashi Iwai

Date: Wed Jul 29 2026 - 03:57:04 EST


On Wed, 29 Jul 2026 09:09:35 +0200,
wangdich9700@xxxxxxx wrote:
>
> From: wangdicheng <wangdicheng@xxxxxxxxxx>
>
> 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 <wangdicheng@xxxxxxxxxx>

Applied to for-next branch now. Thanks.


Takashi