mirror of
https://github.com/AuxXxilium/linux_dsm_epyc7002.git
synced 2025-04-11 23:08:30 +07:00
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: Yehuda Sadeh <yehuda@hq.newdream.net>
This commit is contained in:
parent
6f453ed6c0
commit
010e3b48fc
@ -249,7 +249,7 @@ int ceph_parse_options(struct ceph_options **popt, char *options,
|
|||||||
continue;
|
continue;
|
||||||
err = -EINVAL;
|
err = -EINVAL;
|
||||||
token = match_token((char *)c, opt_tokens, argstr);
|
token = match_token((char *)c, opt_tokens, argstr);
|
||||||
if (token < 0) {
|
if (token < 0 && parse_extra_token) {
|
||||||
/* extra? */
|
/* extra? */
|
||||||
err = parse_extra_token((char *)c, private);
|
err = parse_extra_token((char *)c, private);
|
||||||
if (err < 0) {
|
if (err < 0) {
|
||||||
|
Loading…
Reference in New Issue
Block a user