aboutsummaryrefslogtreecommitdiffstats
path: root/sound/core/seq/seq_clientmgr.c
diff options
context:
space:
mode:
authorTakashi Iwai <tiwai@suse.de>2018-07-25 16:34:12 +0200
committerTakashi Iwai <tiwai@suse.de>2018-07-26 08:23:26 +0200
commita49a71f6e25da2acc637fcd31e73debd96ca18f8 (patch)
tree60cdbf6aab7c825eb1ed6fb81bd08cea18470f84 /sound/core/seq/seq_clientmgr.c
parentALSA: memalloc: Don't exceed over the requested size (diff)
downloadlinux-dev-a49a71f6e25da2acc637fcd31e73debd96ca18f8.tar.xz
linux-dev-a49a71f6e25da2acc637fcd31e73debd96ca18f8.zip
ALSA: seq: Fix poll() error return
The sanity checks in ALSA sequencer and OSS sequencer emulation codes return falsely -ENXIO from poll callback. They should be EPOLLERR instead. This was caught thanks to the recent change to the return value. Cc: <stable@vger.kernel.org> Signed-off-by: Takashi Iwai <tiwai@suse.de>
Diffstat (limited to '')
-rw-r--r--sound/core/seq/seq_clientmgr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/sound/core/seq/seq_clientmgr.c b/sound/core/seq/seq_clientmgr.c
index 56ca78423040..6fd4b074b206 100644
--- a/sound/core/seq/seq_clientmgr.c
+++ b/sound/core/seq/seq_clientmgr.c
@@ -1101,7 +1101,7 @@ static __poll_t snd_seq_poll(struct file *file, poll_table * wait)
/* check client structures are in place */
if (snd_BUG_ON(!client))
- return -ENXIO;
+ return EPOLLERR;
if ((snd_seq_file_flags(file) & SNDRV_SEQ_LFLG_INPUT) &&
client->data.user.fifo) {