2
security/apparmor/inline.h | 5 ++---
3
1 file changed, 2 insertions(+), 3 deletions(-)
5
Index: linux-2.6/security/apparmor/inline.h
6
===================================================================
7
--- linux-2.6.orig/security/apparmor/inline.h
8
+++ linux-2.6/security/apparmor/inline.h
9
@@ -88,7 +88,7 @@ aa_alloc_task_context(struct task_struct
11
struct aa_task_context *cxt;
13
- cxt = kzalloc(sizeof(struct aa_task_context), GFP_KERNEL);
14
+ cxt = kzalloc(sizeof(*cxt), GFP_KERNEL);
16
INIT_LIST_HEAD(&cxt->list);
18
@@ -110,8 +110,7 @@ static inline struct aa_profile *alloc_a
20
struct aa_profile *profile;
22
- profile = (struct aa_profile *)kzalloc(sizeof(struct aa_profile),
24
+ profile = kzalloc(sizeof(*profile), GFP_KERNEL);
25
AA_DEBUG("%s(%p)\n", __FUNCTION__, profile);
27
profile->parent = profile;