Properly account for alignment difference in nlmsg_len.
Signed-off-by: Chris Wright <chrisw(a)osdl.org>
---
kernel/audit.c | 2 +-
1 files changed, 1 insertion(+), 1 deletion(-)
kernel/audit.c: ddb69a4582037864797d287a4a1eadc9dfe49ac3
--- k/kernel/audit.c
+++ l/kernel/audit.c
@@ -488,7 +488,7 @@ static inline int audit_log_drain(struct
if (audit_pid) {
struct nlmsghdr *nlh = (struct nlmsghdr *)skb->data;
- nlh->nlmsg_len = skb->len - sizeof(*nlh);
+ nlh->nlmsg_len = skb->len - NLMSG_SPACE(0);
skb_get(skb); /* because netlink_* frees */
retval = netlink_unicast(audit_sock, skb, audit_pid,
MSG_DONTWAIT);