Message ID | 165870800544.18681.3152428501550287295.stgit@donald.themaw.net (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
Series | cifs: fix negative option value parsing | expand |
diff --git a/fs/cifs/fs_context.c b/fs/cifs/fs_context.c index 8dc0d923ef6a..2dc5cdeee354 100644 --- a/fs/cifs/fs_context.c +++ b/fs/cifs/fs_context.c @@ -863,7 +863,7 @@ static int smb3_fs_context_parse_param(struct fs_context *fc, if (!skip_parsing) { opt = fs_parse(fc, smb3_fs_parameters, param, &result); if (opt < 0) - return ctx->sloppy ? 1 : opt; + return (opt == -ENOPARAM && ctx->sloppy) ? 1 : opt; } switch (opt) {