diff options
Diffstat (limited to 'security/selinux/avc.c')
-rw-r--r-- | security/selinux/avc.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/security/selinux/avc.c b/security/selinux/avc.c index c03a964ffde2..5c1326e18836 100644 --- a/security/selinux/avc.c +++ b/security/selinux/avc.c | |||
@@ -510,7 +510,7 @@ noinline int slow_avc_audit(u32 ssid, u32 tsid, u16 tclass, | |||
510 | * @perms based on @tclass. Returns %0 on success or | 510 | * @perms based on @tclass. Returns %0 on success or |
511 | * -%ENOMEM if insufficient memory exists to add the callback. | 511 | * -%ENOMEM if insufficient memory exists to add the callback. |
512 | */ | 512 | */ |
513 | int avc_add_callback(int (*callback)(u32 event, u32 ssid, u32 tsid, | 513 | int __init avc_add_callback(int (*callback)(u32 event, u32 ssid, u32 tsid, |
514 | u16 tclass, u32 perms, | 514 | u16 tclass, u32 perms, |
515 | u32 *out_retained), | 515 | u32 *out_retained), |
516 | u32 events, u32 ssid, u32 tsid, | 516 | u32 events, u32 ssid, u32 tsid, |
@@ -519,7 +519,7 @@ int avc_add_callback(int (*callback)(u32 event, u32 ssid, u32 tsid, | |||
519 | struct avc_callback_node *c; | 519 | struct avc_callback_node *c; |
520 | int rc = 0; | 520 | int rc = 0; |
521 | 521 | ||
522 | c = kmalloc(sizeof(*c), GFP_ATOMIC); | 522 | c = kmalloc(sizeof(*c), GFP_KERNEL); |
523 | if (!c) { | 523 | if (!c) { |
524 | rc = -ENOMEM; | 524 | rc = -ENOMEM; |
525 | goto out; | 525 | goto out; |