From patchwork Mon Dec 7 13:14:34 2009 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Roel Kluin X-Patchwork-Id: 65508 Received: from vger.kernel.org (vger.kernel.org [209.132.176.167]) by demeter.kernel.org (8.14.2/8.14.2) with ESMTP id nB7DD2X5020108 for ; Mon, 7 Dec 2009 13:13:31 GMT Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1757418AbZLGNNX (ORCPT ); Mon, 7 Dec 2009 08:13:23 -0500 Received: (majordomo@vger.kernel.org) by vger.kernel.org id S1757464AbZLGNNX (ORCPT ); Mon, 7 Dec 2009 08:13:23 -0500 Received: from mail-fx0-f213.google.com ([209.85.220.213]:50095 "EHLO mail-fx0-f213.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1757065AbZLGNNW (ORCPT ); Mon, 7 Dec 2009 08:13:22 -0500 Received: by fxm5 with SMTP id 5so4910380fxm.28 for ; Mon, 07 Dec 2009 05:13:27 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:message-id:date:from :user-agent:mime-version:to:subject:content-type :content-transfer-encoding; bh=AgU1PVeAZccbIKw9/JIhMZpJwVAr+4DW5o5JbrLMfLk=; b=nEzUO0OUibH3ye8TLbe1Hrb0ptlOKfA4mL1UYWm3CUGHH3Je/uBZ/B6GnmpARoeXa9 nEeHkVTOlhWg2leDiOtxQmmPqpoMkN5rpkqjCPlusRMMtpWzNlvLdnREn574hY6xFdSV llffgNI4mSJhc5475xY9Q2kTZGE9V8b8eXiUU= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject :content-type:content-transfer-encoding; b=mjvQBkTX56ej+3th8qk9TXrvoh/Ii9h6hBws/qm5pyvygqEQeRpa0lh8faXCiSI9UA 5WZpjSDKiAOSoliga579L0ILzBexg+8q8Qn0zv1xJ/eILqCSQKP+t1Qv/M4UA+O9gns+ A0DQMsEkiohA7fZaHkRzEIS2SDWH6bkM3OI/Y= Received: by 10.103.84.15 with SMTP id m15mr2150465mul.105.1260191607478; Mon, 07 Dec 2009 05:13:27 -0800 (PST) Received: from zoinx.mars (d133062.upc-d.chello.nl [213.46.133.62]) by mx.google.com with ESMTPS id s10sm8498351mue.21.2009.12.07.05.13.26 (version=SSLv3 cipher=RC4-MD5); Mon, 07 Dec 2009 05:13:26 -0800 (PST) Message-ID: <4B1CFFBA.8060407@gmail.com> Date: Mon, 07 Dec 2009 14:14:34 +0100 From: Roel Kluin User-Agent: Mozilla/5.0 (X11; U; Linux x86_64; en-US; rv:1.9.1.4pre) Gecko/20091014 Fedora/3.0-2.8.b4.fc11 Thunderbird/3.0b4 MIME-Version: 1.0 To: Roland Dreier , Sean Hefty , Hal Rosenstock , linux-rdma@vger.kernel.org, Andrew Morton , LKML Subject: [PATCH] IB/uverbs: PTR_ERR return of wrong pointer in ib_uverbs_get_context() Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org diff --git a/drivers/infiniband/core/uverbs_cmd.c b/drivers/infiniband/core/uverbs_cmd.c index 56feab6..112d397 100644 --- a/drivers/infiniband/core/uverbs_cmd.c +++ b/drivers/infiniband/core/uverbs_cmd.c @@ -285,7 +285,7 @@ ssize_t ib_uverbs_get_context(struct ib_uverbs_file *file, ucontext = ibdev->alloc_ucontext(ibdev, &udata); if (IS_ERR(ucontext)) { - ret = PTR_ERR(file->ucontext); + ret = PTR_ERR(ucontext); goto err; }