ALSA: firewire-motu: drop EPOLLOUT from poll return values as write is not supported
authorTakashi Sakamoto <o-takashi@sakamocchi.jp>
Fri, 29 Aug 2025 23:37:49 +0000 (08:37 +0900)
committerTakashi Iwai <tiwai@suse.de>
Sat, 30 Aug 2025 07:32:45 +0000 (09:32 +0200)
commitaea3493246c474bc917d124d6fb627663ab6bef0
tree5cec78bcdf97f912587e26587de4939e44940a2e
parent78811dd56def1479777c9823f3c2139739ef5bf5
ALSA: firewire-motu: drop EPOLLOUT from poll return values as write is not supported

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
71c3797779d3 ("ALSA: firewire-motu: add hwdep interface"), and persisted
when POLLOUT was updated to EPOLLOUT by a commit a9a08845e9ac ('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>
sound/firewire/motu/motu-hwdep.c