Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 186119
b: refs/heads/master
c: c1a7c22
h: refs/heads/master
i:
  186117: 4167785
  186115: 506295f
  186111: d2f318f
v: v3
  • Loading branch information
Aneesh Kumar K.V authored and Eric Van Hensbergen committed Mar 5, 2010
1 parent f473250 commit 28c2d10
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 2 deletions.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 37c1209d413242d9560e343c040777049a8dd869
refs/heads/master: c1a7c2262035e83a8f70ebe1328b3451702cf51b
4 changes: 3 additions & 1 deletion trunk/net/9p/trans_virtio.c
Original file line number Diff line number Diff line change
Expand Up @@ -279,6 +279,7 @@ static int
p9_virtio_create(struct p9_client *client, const char *devname, char *args)
{
struct virtio_chan *chan;
int ret = -ENOENT;
int found = 0;

mutex_lock(&virtio_9p_lock);
Expand All @@ -289,13 +290,14 @@ p9_virtio_create(struct p9_client *client, const char *devname, char *args)
found = 1;
break;
}
ret = -EBUSY;
}
}
mutex_unlock(&virtio_9p_lock);

if (!found) {
printk(KERN_ERR "9p: no channels available\n");
return -ENODEV;
return ret;
}

client->trans = (void *)chan;
Expand Down

0 comments on commit 28c2d10

Please sign in to comment.