|
@@ -735,12 +735,14 @@ static int parse_opts(char *params, struct p9_fd_opts *opts)
|
|
if (!*p)
|
|
if (!*p)
|
|
continue;
|
|
continue;
|
|
token = match_token(p, tokens, args);
|
|
token = match_token(p, tokens, args);
|
|
- r = match_int(&args[0], &option);
|
|
|
|
- if (r < 0) {
|
|
|
|
- P9_DPRINTK(P9_DEBUG_ERROR,
|
|
|
|
- "integer field, but no integer?\n");
|
|
|
|
- ret = r;
|
|
|
|
- continue;
|
|
|
|
|
|
+ if (token != Opt_err) {
|
|
|
|
+ r = match_int(&args[0], &option);
|
|
|
|
+ if (r < 0) {
|
|
|
|
+ P9_DPRINTK(P9_DEBUG_ERROR,
|
|
|
|
+ "integer field, but no integer?\n");
|
|
|
|
+ ret = r;
|
|
|
|
+ continue;
|
|
|
|
+ }
|
|
}
|
|
}
|
|
switch (token) {
|
|
switch (token) {
|
|
case Opt_port:
|
|
case Opt_port:
|