Skip to content

Commit

Permalink
---
Browse files Browse the repository at this point in the history
yaml
---
r: 262182
b: refs/heads/master
c: 286f367
h: refs/heads/master
v: v3
  • Loading branch information
Mike Snitzer authored and Alasdair G Kergon committed Aug 2, 2011
1 parent 6298980 commit e3af3c6
Show file tree
Hide file tree
Showing 2 changed files with 6 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: 762a80d9fc9f690a3a35983f3b4619a220650808
refs/heads/master: 286f367dad40beb3234a18c17391d03ba939a7f3
5 changes: 5 additions & 0 deletions trunk/drivers/md/dm-mpath.c
Original file line number Diff line number Diff line change
Expand Up @@ -807,6 +807,11 @@ static int parse_features(struct arg_set *as, struct multipath *m)
if (!argc)
return 0;

if (argc > as->argc) {
ti->error = "not enough arguments for features";
return -EINVAL;
}

do {
param_name = shift(as);
argc--;
Expand Down

0 comments on commit e3af3c6

Please sign in to comment.