From: Andrei Vagin <avagin@xxxxxxxxx> security_fs_context_parse_param() returns 0 if everything is okay. Signed-off-by: Andrei Vagin <avagin@xxxxxxxxx> --- fs/fs_context.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/fs_context.c b/fs/fs_context.c index a82679441031..16bf2cb57534 100644 --- a/fs/fs_context.c +++ b/fs/fs_context.c @@ -146,7 +146,7 @@ int vfs_parse_fs_param(struct fs_context *fc, struct fs_parameter *param) return ret; ret = security_fs_context_parse_param(fc, param); - if (ret != -ENOPARAM) + if (ret) /* Param belongs to the LSM or is disallowed by the LSM; so * don't pass to the FS. */ -- 2.17.1