From: Wenchao Xia <wenchaolinux@gmail.com>
To: linux-next@vger.kernel.org
Cc: wenchaolinuxkvm@gmail.com, mst@redhat.com, kvm@vger.kernel.org,
virtualization@lists.linux-foundation.org, asias@redhat.com,
pbonzini@redhat.com, nab@linux-iscsi.org,
Wenchao Xia <wenchaolinux@gmail.com>
Subject: [PATCH] vhost-scsi: return -ENOENT when no matching tcm_vhost_tpg found
Date: Tue, 28 May 2013 16:54:44 +0800 [thread overview]
Message-ID: <1369731284-4139-1-git-send-email-wenchaolinux@gmail.com> (raw)
ioctl for VHOST_SCSI_SET_ENDPOINT report file exist errori, when I forget
to set it correctly in configfs, make user confused. Actually it fail
to find a matching one, so change the error value.
Signed-off-by: Wenchao Xia <wenchaolinux@gmail.com>
---
drivers/vhost/scsi.c | 2 +-
1 files changed, 1 insertions(+), 1 deletions(-)
diff --git a/drivers/vhost/scsi.c b/drivers/vhost/scsi.c
index 7014202..6325b1d 100644
--- a/drivers/vhost/scsi.c
+++ b/drivers/vhost/scsi.c
@@ -1219,7 +1219,7 @@ static int vhost_scsi_set_endpoint(
}
ret = 0;
} else {
- ret = -EEXIST;
+ ret = -ENOENT;
}
/*
--
1.7.1
next reply other threads:[~2013-05-28 8:54 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-28 8:54 Wenchao Xia [this message]
2013-05-28 9:25 ` [PATCH] vhost-scsi: return -ENOENT when no matching tcm_vhost_tpg found Asias He
2013-06-12 1:39 ` wenchao
2013-06-12 3:03 ` Greg Kroah-Hartman
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=1369731284-4139-1-git-send-email-wenchaolinux@gmail.com \
--to=wenchaolinux@gmail.com \
--cc=asias@redhat.com \
--cc=kvm@vger.kernel.org \
--cc=linux-next@vger.kernel.org \
--cc=mst@redhat.com \
--cc=nab@linux-iscsi.org \
--cc=pbonzini@redhat.com \
--cc=virtualization@lists.linux-foundation.org \
--cc=wenchaolinuxkvm@gmail.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;
as well as URLs for NNTP newsgroup(s).