From: Vinod Koul Subject: [PATCH] fix error returned by compress_wait() Date: Wed, 24 Jul 2013 23:26:17 +0530 Message-ID: <1374688577-27976-1-git-send-email-vinod.koul@intel.com> Mime-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Return-path: Received: from mga14.intel.com (mga14.intel.com [143.182.124.37]) by alsa0.perex.cz (Postfix) with ESMTP id 86386265544 for ; Wed, 24 Jul 2013 20:34:54 +0200 (CEST) List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: alsa-devel-bounces@alsa-project.org Sender: alsa-devel-bounces@alsa-project.org To: alsa-devel@alsa-project.org Cc: Vinod Koul , Eric Laurent List-Id: alsa-devel@alsa-project.org From: Eric Laurent oops() expects positive error codes. Signed-off-by: Eric Laurent Signed-off-by: Vinod Koul --- compress.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-) diff --git a/compress.c b/compress.c index 734fbbf..0e71c28 100644 --- a/compress.c +++ b/compress.c @@ -623,7 +623,7 @@ int compress_wait(struct compress *compress, int timeout_ms) return 0; } if (fds.revents & POLLERR) { - return oops(compress, -EIO, "poll returned error!"); + return oops(compress, EIO, "poll returned error!"); } return ret; } -- 1.7.0.4