Skip to content

Commit

Permalink
apparmor: Free up __cleanup() name
Browse files Browse the repository at this point in the history
In order to use __cleanup for __attribute__((__cleanup__(func))) the
name must not be used for anything else. Avoid the conflict.

Signed-off-by: Peter Zijlstra (Intel) <[email protected]>
Acked-by: John Johansen <[email protected]>
Link: https://lkml.kernel.org/r/20230612093537.536441207%40infradead.org
  • Loading branch information
Peter Zijlstra committed Jun 26, 2023
1 parent f62141a commit 9a1f37e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions security/apparmor/include/lib.h
Original file line number Diff line number Diff line change
Expand Up @@ -232,7 +232,7 @@ void aa_policy_destroy(struct aa_policy *policy);
*/
#define fn_label_build(L, P, GFP, FN) \
({ \
__label__ __cleanup, __done; \
__label__ __do_cleanup, __done; \
struct aa_label *__new_; \
\
if ((L)->size > 1) { \
Expand All @@ -250,7 +250,7 @@ void aa_policy_destroy(struct aa_policy *policy);
__new_ = (FN); \
AA_BUG(!__new_); \
if (IS_ERR(__new_)) \
goto __cleanup; \
goto __do_cleanup; \
__lvec[__j++] = __new_; \
} \
for (__j = __count = 0; __j < (L)->size; __j++) \
Expand All @@ -272,7 +272,7 @@ void aa_policy_destroy(struct aa_policy *policy);
vec_cleanup(profile, __pvec, __count); \
} else \
__new_ = NULL; \
__cleanup: \
__do_cleanup: \
vec_cleanup(label, __lvec, (L)->size); \
} else { \
(P) = labels_profile(L); \
Expand Down

0 comments on commit 9a1f37e

Please sign in to comment.