From: "Gustavo A. R. Silva" <gustavo@embeddedor.com> To: John Johansen <john.johansen@canonical.com>, James Morris <jmorris@namei.org>, "Serge E. Hallyn" <serge@hallyn.com> Cc: linux-security-module@vger.kernel.org, linux-kernel@vger.kernel.org, "Gustavo A. R. Silva" <gustavo@embeddedor.com> Subject: [PATCH] apparmor: remove dead code Date: Thu, 23 Aug 2018 08:42:55 -0500 [thread overview] Message-ID: <20180823134255.GA12128@embeddedor.com> (raw) Due to commit fb5841091f28 ("apparmor: remove no-op permission check in policy_unpack"), there is some leftover code. Coverity reports this issue as Structurally dead code. Fix this by removing such code. Addresses-Coverity-ID: 1472998 ("Structurally dead code") Fixes: fb5841091f28 ("apparmor: remove no-op permission check in policy_unpack") Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> --- security/apparmor/policy_unpack.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/security/apparmor/policy_unpack.c b/security/apparmor/policy_unpack.c index 3647b58..21cb384 100644 --- a/security/apparmor/policy_unpack.c +++ b/security/apparmor/policy_unpack.c @@ -422,10 +422,6 @@ static struct aa_dfa *unpack_dfa(struct aa_ext *e) } return dfa; - -fail: - aa_put_dfa(dfa); - return ERR_PTR(-EPROTO); } /** -- 2.7.4
WARNING: multiple messages have this Message-ID (diff)
From: gustavo@embeddedor.com (Gustavo A. R. Silva) To: linux-security-module@vger.kernel.org Subject: [PATCH] apparmor: remove dead code Date: Thu, 23 Aug 2018 08:42:55 -0500 [thread overview] Message-ID: <20180823134255.GA12128@embeddedor.com> (raw) Due to commit fb5841091f28 ("apparmor: remove no-op permission check in policy_unpack"), there is some leftover code. Coverity reports this issue as Structurally dead code. Fix this by removing such code. Addresses-Coverity-ID: 1472998 ("Structurally dead code") Fixes: fb5841091f28 ("apparmor: remove no-op permission check in policy_unpack") Signed-off-by: Gustavo A. R. Silva <gustavo@embeddedor.com> --- security/apparmor/policy_unpack.c | 4 ---- 1 file changed, 4 deletions(-) diff --git a/security/apparmor/policy_unpack.c b/security/apparmor/policy_unpack.c index 3647b58..21cb384 100644 --- a/security/apparmor/policy_unpack.c +++ b/security/apparmor/policy_unpack.c @@ -422,10 +422,6 @@ static struct aa_dfa *unpack_dfa(struct aa_ext *e) } return dfa; - -fail: - aa_put_dfa(dfa); - return ERR_PTR(-EPROTO); } /** -- 2.7.4
next reply other threads:[~2018-08-23 13:43 UTC|newest] Thread overview: 8+ messages / expand[flat|nested] mbox.gz Atom feed top 2018-08-23 13:42 Gustavo A. R. Silva [this message] 2018-08-23 13:42 ` [PATCH] apparmor: remove dead code Gustavo A. R. Silva 2018-08-23 18:21 ` John Johansen 2018-08-23 18:21 ` John Johansen 2018-08-23 18:33 ` Gustavo A. R. Silva 2018-08-23 18:33 ` Gustavo A. R. Silva 2018-08-23 18:35 ` kbuild test robot 2018-08-23 18:35 ` kbuild test robot
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=20180823134255.GA12128@embeddedor.com \ --to=gustavo@embeddedor.com \ --cc=jmorris@namei.org \ --cc=john.johansen@canonical.com \ --cc=linux-kernel@vger.kernel.org \ --cc=linux-security-module@vger.kernel.org \ --cc=serge@hallyn.com \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes, see mirroring instructions on how to clone and mirror all data and code used by this external index.