From 61368d702769c6edd42225ef48c342591ccba101 Mon Sep 17 00:00:00 2001 From: John Johansen Date: Sun, 3 Sep 2017 12:10:20 -0700 Subject: [PATCH] UBUNTU: SAUCE: LSM stacking: fixup: alloc_task_ctx is dead code BugLink: http://bugs.launchpad.net/bugs/1763062 Fixes: 7b27ec622c90 ("LSM: manage credential security blobs) Signed-off-by: John Johansen Signed-off-by: Seth Forshee --- security/apparmor/context.c | 10 ---------- security/apparmor/include/context.h | 1 - 2 files changed, 11 deletions(-) diff --git a/security/apparmor/context.c b/security/apparmor/context.c index db203ee24db8..8956da14b462 100644 --- a/security/apparmor/context.c +++ b/security/apparmor/context.c @@ -29,16 +29,6 @@ #include "include/context.h" #include "include/policy.h" -/** - * aa_alloc_task_context - allocate a new task_ctx - * @flags: gfp flags for allocation - * - * Returns: allocated buffer or NULL on failure - */ -struct aa_task_ctx *aa_alloc_task_context(gfp_t flags) -{ - return kzalloc(sizeof(struct aa_task_ctx), flags); -} /** * aa_free_task_context - free a task_ctx diff --git a/security/apparmor/include/context.h b/security/apparmor/include/context.h index c6d5dbbd18b0..349ea3088267 100644 --- a/security/apparmor/include/context.h +++ b/security/apparmor/include/context.h @@ -45,7 +45,6 @@ struct aa_task_ctx { u64 token; }; -struct aa_task_ctx *aa_alloc_task_context(gfp_t flags); void aa_free_task_context(struct aa_task_ctx *ctx); void aa_dup_task_context(struct aa_task_ctx *new, const struct aa_task_ctx *old); -- 2.39.2