]> git.alsa-project.org Git - tinycompress.git/commit
compress: Must check for POLLERR before POLLOUT/POLLIN
authorRichard Fitzgerald <rf@opensource.wolfsonmicro.com>
Thu, 29 Aug 2013 08:32:02 +0000 (09:32 +0100)
committerVinod Koul <vinod.koul@intel.com>
Wed, 25 Sep 2013 10:14:50 +0000 (15:44 +0530)
commit2b0410a2575ee3a66cc968672c1a548ac2bc8e8c
tree19e573c9d40d7fe757cb705babb3836c5397ec34
parent22406d20f87615b0d2938d32ad85d155b097e21f
compress: Must check for POLLERR before POLLOUT/POLLIN

In the case of error the ALSA compressed driver sets revents as
(POLLOUT | POLLWRNORM | POLLERR) or (POLLIN | POLLWRNORM | POLLERR).
So we can't assume that POLLOUT or POLLIN indicate success, we must
check for POLLERR first.

Signed-off-by: Richard Fitzgerald <rf@opensource.wolfsonmicro.com>
Signed-off-by: Vinod Koul <vinod.koul@intel.com>
compress.c