X-Git-Url: https://git.openpandora.org/cgi-bin/gitweb.cgi?a=blobdiff_plain;f=kernel%2Faudit.c;h=e14bc7422acaa2eae5916abca0f3b922a2cd923a;hb=a496c189d4c57f108df647aa4137de720f52b406;hp=7cde653cfe2dcfe60875afacfe30a026ff3f6937;hpb=71deebc1112584a061ffef2d1c703bef17fd3c80;p=pandora-kernel.git diff --git a/kernel/audit.c b/kernel/audit.c index 7cde653cfe2d..e14bc7422aca 100644 --- a/kernel/audit.c +++ b/kernel/audit.c @@ -696,7 +696,7 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh) &status_set, sizeof(status_set)); break; case AUDIT_SET: - if (nlh->nlmsg_len < sizeof(struct audit_status)) + if (nlmsg_len(nlh) < sizeof(struct audit_status)) return -EINVAL; status_get = (struct audit_status *)data; if (status_get->mask & AUDIT_STATUS_ENABLED) { @@ -900,7 +900,7 @@ static int audit_receive_msg(struct sk_buff *skb, struct nlmsghdr *nlh) struct task_struct *tsk; unsigned long flags; - if (nlh->nlmsg_len < sizeof(struct audit_tty_status)) + if (nlmsg_len(nlh) < sizeof(struct audit_tty_status)) return -EINVAL; s = data; if (s->enabled != 0 && s->enabled != 1)