mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
From: Heloise NH <os@iscas.ac.cn>
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	[thread overview]
Message-ID: <1444810679-30592-1-git-send-email-os@iscas.ac.cn> (raw)

Signed-off-by: Heloise NH <os@iscas.ac.cn>
---
 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;
 	}
 
-- 
1.9.1


             reply	other threads:[~2015-10-14  8:18 UTC|newest]

Thread overview: 7+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2015-10-14  8:17 Heloise NH [this message]
2015-10-14 11:59 ` Leon Romanovsky
2015-10-14 13:55   ` Or Gerlitz
  -- strict thread matches above, loose matches on Subject: below --
2015-10-14  7:46 Heloise NH
2015-10-14 14:12 ` Marciniszyn, Mike
2015-10-14 14:17 ` Marciniszyn, Mike
2015-10-14 14:29   ` Leon Romanovsky

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=1444810679-30592-1-git-send-email-os@iscas.ac.cn \
    --to=os@iscas.ac.cn \
    --cc=dledford@redhat.com \
    --cc=hal.rosenstock@gmail.com \
    --cc=infinipath@intel.com \
    --cc=linux-kernel@vger.kernel.org \
    --cc=linux-rdma@vger.kernel.org \
    --cc=sean.hefty@intel.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox

all inboxes | Powered by JetHome®