aboutsummaryrefslogtreecommitdiffstats
path: root/kernel
diff options
context:
space:
mode:
Diffstat (limited to 'kernel')
-rw-r--r--kernel/audit.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/audit.c b/kernel/audit.c
index ddb69a458203..a5f03cb2c0f5 100644
--- a/kernel/audit.c
+++ b/kernel/audit.c
@@ -488,7 +488,7 @@ static inline int audit_log_drain(struct audit_buffer *ab)
488 488
489 if (audit_pid) { 489 if (audit_pid) {
490 struct nlmsghdr *nlh = (struct nlmsghdr *)skb->data; 490 struct nlmsghdr *nlh = (struct nlmsghdr *)skb->data;
491 nlh->nlmsg_len = skb->len - sizeof(*nlh); 491 nlh->nlmsg_len = skb->len - NLMSG_SPACE(0);
492 skb_get(skb); /* because netlink_* frees */ 492 skb_get(skb); /* because netlink_* frees */
493 retval = netlink_unicast(audit_sock, skb, audit_pid, 493 retval = netlink_unicast(audit_sock, skb, audit_pid,
494 MSG_DONTWAIT); 494 MSG_DONTWAIT);