Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 180377
b: refs/heads/master
c: 349d3bb
h: refs/heads/master
i:
  180375: 87345c3
v: v3
  • Loading branch information
Eric Van Hensbergen committed Feb 8, 2010
1 parent 122a812 commit 5bc8bd9
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion [refs]
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
---
refs/heads/master: 562ada612058133a5483c68a73605f3c5f42fffe
refs/heads/master: 349d3bb878d71978650a0634b5445af3c1cc1cd8
8 changes: 8 additions & 0 deletions trunk/net/9p/client.c
Original file line number Diff line number Diff line change
Expand Up @@ -108,6 +108,13 @@ static int parse_opts(char *opts, struct p9_client *clnt)
break;
case Opt_trans:
clnt->trans_mod = v9fs_get_trans_by_name(&args[0]);
if(clnt->trans_mod == NULL) {
P9_DPRINTK(P9_DEBUG_ERROR,
"Could not find request transport: %s\n",
(char *) &args[0]);
ret = -EINVAL;
goto free_and_return;
}
break;
case Opt_legacy:
clnt->dotu = 0;
Expand All @@ -117,6 +124,7 @@ static int parse_opts(char *opts, struct p9_client *clnt)
}
}

free_and_return:
kfree(options);
return ret;
}
Expand Down

0 comments on commit 5bc8bd9

Please sign in to comment.