diff mbox

[V9fs-developer,-V2,1/3] 9p: Return ENOENT on 9p channel allocation failure.

Message ID 1265909071-11474-1-git-send-email-aneesh.kumar@linux.vnet.ibm.com (mailing list archive)
State Superseded, archived
Headers show

Commit Message

Aneesh Kumar K.V Feb. 11, 2010, 5:24 p.m. UTC
None
diff mbox

Patch

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;