]> git.baikalelectronics.ru Git - kernel.git/commit
ALSA: pcm: Fix poll error return codes
authorCharles Keepax <ckeepax@opensource.wolfsonmicro.com>
Wed, 4 May 2016 13:59:07 +0000 (14:59 +0100)
committerTakashi Iwai <tiwai@suse.de>
Mon, 9 May 2016 15:34:49 +0000 (17:34 +0200)
commitd90872642640030560e9d13e47fb58b2afbb08ec
tree87f090215dc89255ef6a08bea3a82ed72e18c6a5
parent53d489c366505bef6c9e74da8a21eb809012a0f8
ALSA: pcm: Fix poll error return codes

We can't return a negative error code from the poll callback the return
type is unsigned and is checked against the poll specific flags we need
to return POLLERR if we encounter an error.

Signed-off-by: Charles Keepax <ckeepax@opensource.wolfsonmicro.com>
Reviewed-by: Takashi Sakamoto <o-takashi@sakamocchi.jp>
Signed-off-by: Takashi Iwai <tiwai@suse.de>
sound/core/pcm_native.c