From patchwork Thu Feb 11 17:24:29 2010 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: "Aneesh Kumar K.V" X-Patchwork-Id: 78749 Received: from lists.sourceforge.net (lists.sourceforge.net [216.34.181.88]) by demeter.kernel.org (8.14.3/8.14.3) with ESMTP id o1BHOsZl006962 (version=TLSv1/SSLv3 cipher=DHE-RSA-AES256-SHA bits=256 verify=NO) for ; Thu, 11 Feb 2010 17:25:30 GMT Received: from localhost ([127.0.0.1] helo=sfs-ml-3.v29.ch3.sourceforge.com) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NfcmV-0002Ce-7i; Thu, 11 Feb 2010 17:24:47 +0000 Received: from sfi-mx-2.v28.ch3.sourceforge.com ([172.29.28.122] helo=mx.sourceforge.net) by sfs-ml-3.v29.ch3.sourceforge.com with esmtp (Exim 4.69) (envelope-from ) id 1NfcmT-0002CM-SM for v9fs-developer@lists.sourceforge.net; Thu, 11 Feb 2010 17:24:45 +0000 X-ACL-Warn: Received: from e23smtp03.au.ibm.com ([202.81.31.145]) by sfi-mx-2.v28.ch3.sourceforge.com with esmtps (TLSv1:AES256-SHA:256) (Exim 4.69) id 1NfcmS-0006uu-8A for v9fs-developer@lists.sourceforge.net; Thu, 11 Feb 2010 17:24:45 +0000 Received: from d23relay05.au.ibm.com (d23relay05.au.ibm.com [202.81.31.247]) by e23smtp03.au.ibm.com (8.14.3/8.13.1) with ESMTP id o1BHLZw0031871 for ; Fri, 12 Feb 2010 04:21:35 +1100 Received: from d23av02.au.ibm.com (d23av02.au.ibm.com [9.190.235.138]) by d23relay05.au.ibm.com (8.13.8/8.13.8/NCO v10.0) with ESMTP id o1BHJMDx1638590 for ; Fri, 12 Feb 2010 04:19:22 +1100 Received: from d23av02.au.ibm.com (loopback [127.0.0.1]) by d23av02.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVout) with ESMTP id o1BHOZ4Y016205 for ; Fri, 12 Feb 2010 04:24:35 +1100 Received: from localhost.localdomain ([9.124.211.8]) by d23av02.au.ibm.com (8.14.3/8.13.1/NCO v10.0 AVin) with ESMTP id o1BHOXp0016197; Fri, 12 Feb 2010 04:24:34 +1100 From: "Aneesh Kumar K.V" To: v9fs-developer@lists.sourceforge.net Date: Thu, 11 Feb 2010 22:54:29 +0530 Message-Id: <1265909071-11474-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com> X-Mailer: git-send-email 1.7.0.rc2 X-Spam-Score: -2.0 (--) X-Spam-Report: Spam Filtering performed by mx.sourceforge.net. See http://spamassassin.org/tag/ for more details. -4.0 RCVD_IN_DNSWL_MED RBL: Sender listed at http://www.dnswl.org/, medium trust [202.81.31.145 listed in list.dnswl.org] 2.0 AWL AWL: From: address is in the auto white-list X-Headers-End: 1NfcmS-0006uu-8A Subject: [V9fs-developer] [PATCH -V2 1/3] 9p: Return ENOENT on 9p channel allocation failure. X-BeenThere: v9fs-developer@lists.sourceforge.net X-Mailman-Version: 2.1.9 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: v9fs-developer-bounces@lists.sourceforge.net X-Greylist: IP, sender and recipient auto-whitelisted, not delayed by milter-greylist-4.2.3 (demeter.kernel.org [140.211.167.41]); Thu, 11 Feb 2010 17:25:30 +0000 (UTC) diff --git a/net/9p/trans_virtio.c b/net/9p/trans_virtio.c index cb50f4a..e586bce 100644 --- a/net/9p/trans_virtio.c +++ b/net/9p/trans_virtio.c @@ -308,7 +308,7 @@ p9_virtio_create(struct p9_client *client, const char *devname, char *args) if (index >= MAX_9P_CHAN) { printk(KERN_ERR "9p: no channels available\n"); - return -ENODEV; + return -ENOENT; } client->trans = (void *)chan;