ALSA: seq: Fix poll() error return
authorTakashi Iwai <tiwai@suse.de>
Wed, 25 Jul 2018 14:34:12 +0000 (16:34 +0200)
committerTakashi Iwai <tiwai@suse.de>
Thu, 26 Jul 2018 06:23:26 +0000 (08:23 +0200)
commita49a71f6e25da2acc637fcd31e73debd96ca18f8
tree60cdbf6aab7c825eb1ed6fb81bd08cea18470f84
parentdfef01e150824b0e6da750cacda8958188d29aea
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>
sound/core/seq/oss/seq_oss.c
sound/core/seq/seq_clientmgr.c