mirror of
https://gitlab.com/apparmor/apparmor.git
synced 2025-03-04 16:35:02 +01:00
27 lines
892 B
Diff
27 lines
892 B
Diff
---
|
|
security/apparmor/inline.h | 5 ++---
|
|
1 file changed, 2 insertions(+), 3 deletions(-)
|
|
|
|
Index: linux-2.6/security/apparmor/inline.h
|
|
===================================================================
|
|
--- linux-2.6.orig/security/apparmor/inline.h
|
|
+++ linux-2.6/security/apparmor/inline.h
|
|
@@ -88,7 +88,7 @@ aa_alloc_task_context(struct task_struct
|
|
{
|
|
struct aa_task_context *cxt;
|
|
|
|
- cxt = kzalloc(sizeof(struct aa_task_context), GFP_KERNEL);
|
|
+ cxt = kzalloc(sizeof(*cxt), GFP_KERNEL);
|
|
if (cxt) {
|
|
INIT_LIST_HEAD(&cxt->list);
|
|
cxt->task = task;
|
|
@@ -110,8 +110,7 @@ static inline struct aa_profile *alloc_a
|
|
{
|
|
struct aa_profile *profile;
|
|
|
|
- profile = (struct aa_profile *)kzalloc(sizeof(struct aa_profile),
|
|
- GFP_KERNEL);
|
|
+ profile = kzalloc(sizeof(*profile), GFP_KERNEL);
|
|
AA_DEBUG("%s(%p)\n", __FUNCTION__, profile);
|
|
if (profile) {
|
|
profile->parent = profile;
|