Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 73232
b: refs/heads/master
c: 8999e04
h: refs/heads/master
v: v3
  • Loading branch information
Latchesar Ionkov authored and Eric Van Hensbergen committed Nov 6, 2007
1 parent 566e03e commit 23144c0
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 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: dda6b022f3222f09d3fb49f5dfabd31d33e0d10b
refs/heads/master: 8999e04f3b7930f0c6f091a541237de51d8dd372
6 changes: 4 additions & 2 deletions trunk/fs/9p/v9fs.c
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ static match_table_t tokens = {

static void v9fs_parse_options(struct v9fs_session_info *v9ses)
{
char *options = v9ses->options;
char *options;
substring_t args[MAX_OPT_ARGS];
char *p;
int option;
Expand All @@ -96,9 +96,10 @@ static void v9fs_parse_options(struct v9fs_session_info *v9ses)
v9ses->cache = 0;
v9ses->trans = v9fs_default_trans();

if (!options)
if (!v9ses->options)
return;

options = kstrdup(v9ses->options, GFP_KERNEL);
while ((p = strsep(&options, ",")) != NULL) {
int token;
if (!*p)
Expand Down Expand Up @@ -169,6 +170,7 @@ static void v9fs_parse_options(struct v9fs_session_info *v9ses)
continue;
}
}
kfree(options);
}

/**
Expand Down

0 comments on commit 23144c0

Please sign in to comment.