]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: usb-audio: Add error checks against get_min_max*()
authorRong Zhang <i@rong.moe>
Fri, 10 Apr 2026 17:49:02 +0000 (01:49 +0800)
committerTakashi Iwai <tiwai@suse.de>
Sat, 11 Apr 2026 08:02:25 +0000 (10:02 +0200)
commit4f55a85cd4fc988712965f710ba1475e7ba3292a
tree01781406fda2ea1d06b8e8f4715d1b421ac7fb28
parent34fe4a9df2476f52a809d0cd9659ff73de605774
ALSA: usb-audio: Add error checks against get_min_max*()

All callers of get_min_max*() ignore the latter's return code
completely. This means to ignore temporary errors at the probe time.
However, it is not optimal and leads to some maintenance burdens.

Return -EAGAIN for temporary errors, and check against it in the callers
of get_min_max*(). If any other error occurs, bail out of the caller
early.

Suggested-by: Takashi Iwai <tiwai@suse.de>
Link: https://lore.kernel.org/r/87ldewi4j8.wl-tiwai@suse.de
Signed-off-by: Rong Zhang <i@rong.moe>
Link: https://patch.msgid.link/20260411-uac-sticky-mixer-v1-1-29d62717befd@rong.moe
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/usb/mixer.c