Re: [PATCH 1/6] ALSA: control: Return -ENODEV instead of -EFAULT in snd_ctl_open()

From: Bui Duc Phuc

Date: Mon Jul 06 2026 - 08:00:18 EST


Hi Cezary,

Thank you for your review !

> > err = snd_card_file_add(card, file);
> > if (err < 0) {
> > - err = -ENODEV;
>
> Seems unrelated to the patchset.
>

I just fixed it while I was there. Splitting it into two patches would
also have been fine,
but I was a bit lazy to write another commit message. :)

This also preserves the original return value from snd_card_file_add()
(-ENOMEM or -ENODEV)
instead of unconditionally replacing it with -ENODEV.

Best regards,
Phuc