From patchwork Wed Oct 14 08:17:59 2015 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heloise NH X-Patchwork-Id: 7391301 Return-Path: X-Original-To: patchwork-linux-rdma@patchwork.kernel.org Delivered-To: patchwork-parsemail@patchwork1.web.kernel.org Received: from mail.kernel.org (mail.kernel.org [198.145.29.136]) by patchwork1.web.kernel.org (Postfix) with ESMTP id CF5F09F1B9 for ; Wed, 14 Oct 2015 08:24:45 +0000 (UTC) Received: from mail.kernel.org (localhost [127.0.0.1]) by mail.kernel.org (Postfix) with ESMTP id 76893207C6 for ; Wed, 14 Oct 2015 08:24:43 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [209.132.180.67]) by mail.kernel.org (Postfix) with ESMTP id 2DF1A207C1 for ; Wed, 14 Oct 2015 08:24:41 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1752041AbbJNIYj (ORCPT ); Wed, 14 Oct 2015 04:24:39 -0400 Received: from pubmail.iscas.ac.cn ([124.16.136.252]:46210 "EHLO iscas.ac.cn" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1751533AbbJNIYi (ORCPT ); Wed, 14 Oct 2015 04:24:38 -0400 X-Greylist: delayed 386 seconds by postgrey-1.27 at vger.kernel.org; Wed, 14 Oct 2015 04:24:38 EDT Received: from localhost (unknown [127.0.0.1]) by iscas.ac.cn (Postfix) with ESMTP id 7342B1518827; Wed, 14 Oct 2015 16:33:30 +0800 (CST) X-Virus-Scanned: amavisd-new at test.com Received: from iscas.ac.cn ([127.0.0.1]) by localhost (iscas.ac.cn [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id 0MKewdZDd+xo; Wed, 14 Oct 2015 16:33:30 +0800 (CST) Received: from localhost (unknown [124.16.141.81]) (Authenticated sender: os@iscas.ac.cn) by iscas.ac.cn (Postfix) with ESMTPA id 35F851518807; Wed, 14 Oct 2015 16:33:30 +0800 (CST) From: Heloise NH To: infinipath@intel.com, dledford@redhat.com, sean.hefty@intel.com, hal.rosenstock@gmail.com Cc: linux-rdma@vger.kernel.org, os@iscas.ac.cn, linux-kernel@vger.kernel.org Subject: [PATCH] fix return value error Date: Wed, 14 Oct 2015 16:17:59 +0800 Message-Id: <1444810679-30592-1-git-send-email-os@iscas.ac.cn> X-Mailer: git-send-email 1.9.1 Sender: linux-rdma-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-rdma@vger.kernel.org X-Spam-Status: No, score=-6.9 required=5.0 tests=BAYES_00, RCVD_IN_DNSWL_HI, T_RP_MATCHES_RCVD, UNPARSEABLE_RELAY autolearn=ham version=3.3.1 X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on mail.kernel.org X-Virus-Scanned: ClamAV using ClamSMTP Signed-off-by: Heloise NH --- drivers/infiniband/hw/ipath/ipath_fs.c | 2 +- drivers/infiniband/hw/qib/qib_fs.c | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/infiniband/hw/ipath/ipath_fs.c b/drivers/infiniband/hw/ipath/ipath_fs.c index 25422a3..da753bc 100644 --- a/drivers/infiniband/hw/ipath/ipath_fs.c +++ b/drivers/infiniband/hw/ipath/ipath_fs.c @@ -53,7 +53,7 @@ static int ipathfs_mknod(struct inode *dir, struct dentry *dentry, struct inode *inode = new_inode(dir->i_sb); if (!inode) { - error = -EPERM; + error = -ENOMEM; goto bail; } diff --git a/drivers/infiniband/hw/qib/qib_fs.c b/drivers/infiniband/hw/qib/qib_fs.c index 13ef22b..a4c5a6a 100644 --- a/drivers/infiniband/hw/qib/qib_fs.c +++ b/drivers/infiniband/hw/qib/qib_fs.c @@ -55,7 +55,7 @@ static int qibfs_mknod(struct inode *dir, struct dentry *dentry, struct inode *inode = new_inode(dir->i_sb); if (!inode) { - error = -EPERM; + error = -ENOMEM; goto bail; }