diff options
Diffstat (limited to 'kernel/audit.c')
-rw-r--r-- | kernel/audit.c | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/kernel/audit.c b/kernel/audit.c index 488f85f76335..0b084fa44b1f 100644 --- a/kernel/audit.c +++ b/kernel/audit.c | |||
@@ -660,14 +660,14 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh) | |||
660 | 660 | ||
661 | /* As soon as there's any sign of userspace auditd, | 661 | /* As soon as there's any sign of userspace auditd, |
662 | * start kauditd to talk to it */ | 662 | * start kauditd to talk to it */ |
663 | if (!kauditd_task) | 663 | if (!kauditd_task) { |
664 | kauditd_task = kthread_run(kauditd_thread, NULL, "kauditd"); | 664 | kauditd_task = kthread_run(kauditd_thread, NULL, "kauditd"); |
665 | if (IS_ERR(kauditd_task)) { | 665 | if (IS_ERR(kauditd_task)) { |
666 | err = PTR_ERR(kauditd_task); | 666 | err = PTR_ERR(kauditd_task); |
667 | kauditd_task = NULL; | 667 | kauditd_task = NULL; |
668 | return err; | 668 | return err; |
669 | } | ||
669 | } | 670 | } |
670 | |||
671 | loginuid = audit_get_loginuid(current); | 671 | loginuid = audit_get_loginuid(current); |
672 | sessionid = audit_get_sessionid(current); | 672 | sessionid = audit_get_sessionid(current); |
673 | security_task_getsecid(current, &sid); | 673 | security_task_getsecid(current, &sid); |