Re: [PATCH v2] ALSA: control: preserve snd_card_file_add() error code in snd_ctl_open()

From: Cezary Rojewski

Date: Wed Jul 08 2026 - 02:54:33 EST


On 7/8/2026 4:35 AM, phucduc.bui@xxxxxxxxx wrote:
From: bui duc phuc <phucduc.bui@xxxxxxxxx>

snd_ctl_open() unconditionally overwrites the return value of
snd_card_file_add() with -ENODEV on failure, discarding the actual
error code.
Reviewed-by: Cezary Rojewski <cezary.rojewski@xxxxxxxxx>