From patchwork Sat Dec 4 00:09:34 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Arlin Davis X-Patchwork-Id: 379581 Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by demeter1.kernel.org (8.14.4/8.14.3) with ESMTP id oB409cpd002081 for ; Sat, 4 Dec 2010 00:09:41 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752776Ab0LDAJh (ORCPT ); Fri, 3 Dec 2010 19:09:37 -0500 Received: from mga11.intel.com ([192.55.52.93]:10218 "EHLO mga11.intel.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1752246Ab0LDAJh convert rfc822-to-8bit (ORCPT ); Fri, 3 Dec 2010 19:09:37 -0500 Received: from fmsmga002.fm.intel.com ([10.253.24.26]) by fmsmga102.fm.intel.com with ESMTP; 03 Dec 2010 16:09:37 -0800 X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="4.59,296,1288594800"; d="scan'208";a="632954975" Received: from orsmsx603.amr.corp.intel.com ([10.22.226.49]) by fmsmga002.fm.intel.com with ESMTP; 03 Dec 2010 16:09:37 -0800 Received: from orsmsx605.amr.corp.intel.com (10.22.226.10) by orsmsx603.amr.corp.intel.com (10.22.226.49) with Microsoft SMTP Server (TLS) id 8.2.254.0; Fri, 3 Dec 2010 16:09:36 -0800 Received: from orsmsx506.amr.corp.intel.com ([10.22.226.44]) by orsmsx605.amr.corp.intel.com ([10.22.226.10]) with mapi; Fri, 3 Dec 2010 16:09:35 -0800 From: "Davis, Arlin R" To: linux-rdma , "ofw@lists.openfabrics.org" CC: "Smith, Stan" Date: Fri, 3 Dec 2010 16:09:34 -0800 Subject: [PATCH] DAPL v2.0: cq: mixup of errno and the -1 return from poll in dapls_wait_comp_channel Thread-Topic: [PATCH] DAPL v2.0: cq: mixup of errno and the -1 return from poll in dapls_wait_comp_channel Thread-Index: ActyJdB1zpL8wMt1SpGrifvPhTdQ9QhIZGtw Message-ID: Accept-Language: en-US Content-Language: en-US X-MS-Has-Attach: X-MS-TNEF-Correlator: acceptlanguage: en-US MIME-Version: 1.0 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter1.kernel.org [140.211.167.41]); Sat, 04 Dec 2010 00:10:01 +0000 (UTC) diff --git a/dapl/openib_common/cq.c b/dapl/openib_common/cq.c index c36a766..f475d1d 100644 --- a/dapl/openib_common/cq.c +++ b/dapl/openib_common/cq.c @@ -296,7 +296,7 @@ dapls_wait_comp_channel(IN struct ibv_comp_channel *channel, IN uint32_t timeout else if (status == 0) return ETIMEDOUT; else - return status; + return errno; } #endif