linux-yocto/sound/firewire
Takashi Sakamoto 7d2897fa48 ALSA: firewire-motu: drop EPOLLOUT from poll return values as write is not supported
[ Upstream commit aea3493246c474bc917d124d6fb627663ab6bef0 ]

The ALSA HwDep character device of the firewire-motu driver incorrectly
returns EPOLLOUT in poll(2), even though the driver implements no operation
for write(2). This misleads userspace applications to believe write() is
allowed, potentially resulting in unnecessarily wakeups.

This issue dates back to the driver's initial code added by a commit
71c3797779 ("ALSA: firewire-motu: add hwdep interface"), and persisted
when POLLOUT was updated to EPOLLOUT by a commit a9a08845e9 ('vfs: do
bulk POLL* -> EPOLL* replacement("").').

This commit fixes the bug.

Signed-off-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Link: https://patch.msgid.link/20250829233749.366222-1-o-takashi@sakamocchi.jp
Signed-off-by: Takashi Iwai <tiwai@suse.de>
Signed-off-by: Sasha Levin <sashal@kernel.org>
2025-09-25 10:58:50 +02:00
..
bebob
dice
digi00x ALSA: firewire-digi00x: prevent potential use after free 2023-05-24 17:32:43 +01:00
fireface
fireworks
motu ALSA: firewire-motu: drop EPOLLOUT from poll return values as write is not supported 2025-09-25 10:58:50 +02:00
oxfw
tascam ALSA: firewire-lib: fix return value on fail in amdtp_tscm_init() 2024-11-14 13:15:13 +01:00
amdtp-am824.c
amdtp-am824.h
amdtp-stream-trace.h
amdtp-stream.c ALSA: firewire-lib: Avoid division by zero in apply_constraint_to_size() 2024-11-01 01:56:05 +01:00
amdtp-stream.h Revert "ALSA: firewire-lib: obsolete workqueue for period update" 2024-08-11 12:36:00 +02:00
cmp.c
cmp.h
fcp.c
fcp.h
isight.c
iso-resources.c
iso-resources.h
Kconfig
lib.c
lib.h
Makefile
packets-buffer.c
packets-buffer.h