]> git.ipfire.org Git - thirdparty/kernel/linux.git/commit
ALSA: ctxfi: Check the error for index mapping
authorTakashi Iwai <tiwai@suse.de>
Sun, 29 Mar 2026 09:12:38 +0000 (11:12 +0200)
committerTakashi Iwai <tiwai@suse.de>
Sun, 29 Mar 2026 09:13:53 +0000 (11:13 +0200)
commit277c6960d4ddb94d16198afd70c92c3d4593d131
tree3a87ad14295e57a2f1189eeaf5c88dec49d74a74
parentb045ab3dff97edae6d538eeff900a34c098761f8
ALSA: ctxfi: Check the error for index mapping

The ctxfi driver blindly assumed a proper value returned from
daio_device_index(), but it's not always true.  Add a proper error
check to deal with the error from the function.

Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/87cy149n6k.wl-tiwai@suse.de
Link: https://patch.msgid.link/20260329091240.420194-2-tiwai@suse.de
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/pci/ctxfi/ctdaio.c