Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 118488
b: refs/heads/master
c: 9f3e9bb
h: refs/heads/master
v: v3
  • Loading branch information
Roel Kluin authored and Eric Van Hensbergen committed Nov 5, 2008
1 parent 8b8d32c commit 6cea295
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 5 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: 1558c6214904c636d5a37f05f84202d6cdd9cff8
refs/heads/master: 9f3e9bbe62b0bdbbaa7c689a68a22a7d3c1670f0
9 changes: 5 additions & 4 deletions trunk/net/9p/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -608,7 +608,7 @@ p9_client_rpc(struct p9_client *c, int8_t type, const char *fmt, ...)

static struct p9_fid *p9_fid_create(struct p9_client *clnt)
{
int err;
int ret;
struct p9_fid *fid;
unsigned long flags;

Expand All @@ -617,11 +617,12 @@ static struct p9_fid *p9_fid_create(struct p9_client *clnt)
if (!fid)
return ERR_PTR(-ENOMEM);

fid->fid = p9_idpool_get(clnt->fidpool);
ret = p9_idpool_get(clnt->fidpool);
if (fid->fid < 0) {
err = -ENOSPC;
ret = -ENOSPC;
goto error;
}
fid->fid = ret;

memset(&fid->qid, 0, sizeof(struct p9_qid));
fid->mode = -1;
Expand All @@ -638,7 +639,7 @@ static struct p9_fid *p9_fid_create(struct p9_client *clnt)

error:
kfree(fid);
return ERR_PTR(err);
return ERR_PTR(ret);
}

static void p9_fid_destroy(struct p9_fid *fid)
Expand Down

0 comments on commit 6cea295

Please sign in to comment.