From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-lf1-f68.google.com ([209.85.167.68]:34160 "EHLO mail-lf1-f68.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725781AbeIFEoH (ORCPT ); Thu, 6 Sep 2018 00:44:07 -0400 Received: by mail-lf1-f68.google.com with SMTP id c29-v6so7548007lfj.1 for ; Wed, 05 Sep 2018 17:11:30 -0700 (PDT) From: Andrei Vagin To: David Howells Cc: linux-fsdevel@vger.kernel.org, Andrei Vagin Subject: [PATCH dhowells/mount-api] fs: fix checking an error code of security_fs_context_parse_param Date: Wed, 5 Sep 2018 17:10:51 -0700 Message-Id: <20180906001051.24015-1-avagin@openvz.org> Sender: linux-fsdevel-owner@vger.kernel.org List-ID: From: Andrei Vagin security_fs_context_parse_param() returns 0 if everything is okay. Signed-off-by: Andrei Vagin --- 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