aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/md
diff options
context:
space:
mode:
Diffstat (limited to 'drivers/md')
-rw-r--r--drivers/md/dm-mpath.c5
1 files changed, 5 insertions, 0 deletions
diff --git a/drivers/md/dm-mpath.c b/drivers/md/dm-mpath.c
index c3547016f0f1..adf851a081bd 100644
--- a/drivers/md/dm-mpath.c
+++ b/drivers/md/dm-mpath.c
@@ -807,6 +807,11 @@ static int parse_features(struct arg_set *as, struct multipath *m)
807 if (!argc) 807 if (!argc)
808 return 0; 808 return 0;
809 809
810 if (argc > as->argc) {
811 ti->error = "not enough arguments for features";
812 return -EINVAL;
813 }
814
810 do { 815 do {
811 param_name = shift(as); 816 param_name = shift(as);
812 argc--; 817 argc--;