]> www.infradead.org Git - users/jedix/linux-maple.git/commit
ALSA: scarlett2: Return ENOSPC for out-of-bounds flash writes
authorGeoffrey D. Bennett <g@b4.vu>
Fri, 4 Oct 2024 14:28:39 +0000 (23:58 +0930)
committerTakashi Iwai <tiwai@suse.de>
Tue, 8 Oct 2024 08:11:49 +0000 (10:11 +0200)
commit74641bfcbf4e698b770b1b62a74e73934843e90e
tree37e55f5620378d5440add7eb76692a53014dc9dc
parent5c293089af7de1393af9efd2eb3354b10703670e
ALSA: scarlett2: Return ENOSPC for out-of-bounds flash writes

When writing to flash, return ENOSPC instead of EINVAL if the requested
write would exceed the size of the flash segment.

Signed-off-by: Geoffrey D. Bennett <g@b4.vu>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Link: https://patch.msgid.link/3a4af07b0329bed5ffb6994594e4f7bd202aad0f.1727971672.git.g@b4.vu
sound/usb/mixer_scarlett2.c