Thread (6 messages) 6 messages, 5 authors, 2018-08-23

[PATCH] apparmor: remove unused label

From: penguin-kernel@I-love.SAKURA.ne.jp (Tetsuo Handa)
Date: 2018-08-23 14:29:18
Also in: lkml

On 2018/08/23 23:21, Kees Cook wrote:
On Thu, Aug 23, 2018 at 7:09 AM, Arnd Bergmann [off-list ref] wrote:
quoted
After the corresponding 'goto' was removed, we get a warning
for the 'fail' label:

security/apparmor/policy_unpack.c: In function 'unpack_dfa':
security/apparmor/policy_unpack.c:426:1: error: label 'fail' defined but not used [-Werror=unused-label]

Fixes: fb5841091f28 ("apparmor: remove no-op permission check in policy_unpack")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Reviewed-by: Kees Cook <redacted>

-Kees
quoted
---
 security/apparmor/policy_unpack.c | 1 -
 1 file changed, 1 deletion(-)
diff --git a/security/apparmor/policy_unpack.c b/security/apparmor/policy_unpack.c
index 3647b5834ace..96d8cf68ce65 100644
--- a/security/apparmor/policy_unpack.c
+++ b/security/apparmor/policy_unpack.c
@@ -423,7 +423,6 @@ static struct aa_dfa *unpack_dfa(struct aa_ext *e)

        return dfa;

-fail:
        aa_put_dfa(dfa);
        return ERR_PTR(-EPROTO);
If these lines are unreachable, please remove together...
And that is what Gustavo A. R. Silva reported before this patch?
quoted
 }
--
2.18.0
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help