All of lore.kernel.org
 help / color / mirror / Atom feed
From: Takashi Iwai <tiwai@suse.de>
To: Zhao Dongdong <winter91@foxmail.com>
Cc: perex@perex.cz, tiwai@suse.com, linux-sound@vger.kernel.org,
	Zhao Dongdong <zhaodongdong@kylinos.cn>
Subject: Re: [PATCH v3 0/6] ALSA: check snd_ctl_new1() return value in multiple drivers
Date: Thu, 28 May 2026 09:37:41 +0200	[thread overview]
Message-ID: <87a4tkugqi.wl-tiwai@suse.de> (raw)
In-Reply-To: <tencent_355874CF7D3723CAA5BEBDF10EAD78E86605@qq.com>

On Wed, 27 May 2026 14:09:08 +0200,
Zhao Dongdong wrote:
> 
> From: Zhao Dongdong <zhaodongdong@kylinos.cn>
> 
> Check snd_ctl_new1() return value before dereferencing in:
>   - es1938
>   - cmipci
>   - ymfpci
>   - ice1712 (aureon, ice1712, ice1724)
>   - gus
>   - aoa (layout)
> 
> snd_ctl_new1() can return NULL when memory allocation fails.
> Add a NULL check and return -ENOMEM on failure.
> 
> Assisted-by: Opencode:DeepSeek-V4-Flash
> Signed-off-by: Zhao Dongdong <zhaodongdong@kylinos.cn>
> ---
> v1: https://lore.kernel.org/linux-sound/875x49w1i0.wl-tiwai@suse.de/
> 
> ---
> Zhao Dongdong (6):
>   ALSA: es1938: check snd_ctl_new1() return value
>   ALSA: gus: check snd_ctl_new1() return value
>   ALSA: ice1712: check snd_ctl_new1() return value
>   ALSA: ymfpci: check snd_ctl_new1() return value
>   ALSA: cmipci: check snd_ctl_new1() return value
>   ALSA: aoa: check snd_ctl_new1() return value

Applied all 6 patches to for-next branch now.  Thanks.


Takashi

      reply	other threads:[~2026-05-28  7:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2026-05-27 12:09 [PATCH v3 0/6] ALSA: check snd_ctl_new1() return value in multiple drivers Zhao Dongdong
2026-05-28  7:37 ` 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=87a4tkugqi.wl-tiwai@suse.de \
    --to=tiwai@suse.de \
    --cc=linux-sound@vger.kernel.org \
    --cc=perex@perex.cz \
    --cc=tiwai@suse.com \
    --cc=winter91@foxmail.com \
    --cc=zhaodongdong@kylinos.cn \
    /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 an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.