ALSA: ad1816a: Fix potential NULL pointer deref in snd_card_ad1816a_pnp()
authorThorsten Blum <thorsten.blum@linux.dev>
Thu, 3 Jul 2025 20:06:13 +0000 (22:06 +0200)
committerTakashi Iwai <tiwai@suse.de>
Fri, 4 Jul 2025 07:04:12 +0000 (09:04 +0200)
commit043faef334a1f3d96ae88e1b7618bfa2b4946388
tree574450643938417389f36ddb154cacb4f601c130
parentdb98ee56851061082fecd7e6b4b6a93600562ec2
ALSA: ad1816a: Fix potential NULL pointer deref in snd_card_ad1816a_pnp()

Use pr_warn() instead of dev_warn() when 'pdev' is NULL to avoid a
potential NULL pointer dereference.

Cc: stable@vger.kernel.org
Fixes: 20869176d7a7 ("ALSA: ad1816a: Use standard print API")
Signed-off-by: Thorsten Blum <thorsten.blum@linux.dev>
Link: https://patch.msgid.link/20250703200616.304309-2-thorsten.blum@linux.dev
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/isa/ad1816a/ad1816a.c