Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 211129
b: refs/heads/master
c: 0b20406
h: refs/heads/master
i:
  211127: 2e34512
v: v3
  • Loading branch information
Sven Eckelmann authored and David S. Miller committed Sep 27, 2010
1 parent 55592d2 commit 2311818
Show file tree
Hide file tree
Showing 2 changed files with 3 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: 387a85628782690b56492dae4bbf544639f5d4a9
refs/heads/master: 0b20406cda621c2495d10baab1e87127ceb43337
3 changes: 2 additions & 1 deletion trunk/net/9p/trans_virtio.c
Original file line number Diff line number Diff line change
Expand Up @@ -329,7 +329,8 @@ p9_virtio_create(struct p9_client *client, const char *devname, char *args)

mutex_lock(&virtio_9p_lock);
list_for_each_entry(chan, &virtio_chan_list, chan_list) {
if (!strncmp(devname, chan->tag, chan->tag_len)) {
if (!strncmp(devname, chan->tag, chan->tag_len) &&
strlen(devname) == chan->tag_len) {
if (!chan->inuse) {
chan->inuse = true;
found = 1;
Expand Down

0 comments on commit 2311818

Please sign in to comment.