Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 010e3b48 authored by Yehuda Sadeh's avatar Yehuda Sadeh Committed by Sage Weil
Browse files

ceph: don't crash when passed bad mount options



This only happened when parse_extra_token was not passed
to ceph_parse_option() (hence, only happened in rbd).

Signed-off-by: default avatarYehuda Sadeh <yehuda@hq.newdream.net>
parent 6f453ed6
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -249,7 +249,7 @@ int ceph_parse_options(struct ceph_options **popt, char *options,
			continue;
		err = -EINVAL;
		token = match_token((char *)c, opt_tokens, argstr);
		if (token < 0) {
		if (token < 0 && parse_extra_token) {
			/* extra? */
			err = parse_extra_token((char *)c, private);
			if (err < 0) {