Commit 13d5ef97f0675d789f559cfebc1df9d5e2b1879c
Committed by
Al Viro
1 parent
481c5346d0
Exists in
master
and in
7 other branches
[PATCH] kernel/audit.c: nlh->nlmsg_type is gotten more than once
The first argument "nlh->nlmsg_type" of audit_receive_filter() should be modified to "msg_type" in audit_receive_msg(). Signed-off-by: Peng Haitao <penght@cn.fujitsu.com> Signed-off-by: Al Viro <viro@zeniv.linux.org.uk>
Showing 1 changed file with 2 additions and 2 deletions Side-by-side Diff
kernel/audit.c
... | ... | @@ -779,7 +779,7 @@ |
779 | 779 | } |
780 | 780 | /* fallthrough */ |
781 | 781 | case AUDIT_LIST: |
782 | - err = audit_receive_filter(nlh->nlmsg_type, NETLINK_CB(skb).pid, | |
782 | + err = audit_receive_filter(msg_type, NETLINK_CB(skb).pid, | |
783 | 783 | uid, seq, data, nlmsg_len(nlh), |
784 | 784 | loginuid, sessionid, sid); |
785 | 785 | break; |
... | ... | @@ -798,7 +798,7 @@ |
798 | 798 | } |
799 | 799 | /* fallthrough */ |
800 | 800 | case AUDIT_LIST_RULES: |
801 | - err = audit_receive_filter(nlh->nlmsg_type, NETLINK_CB(skb).pid, | |
801 | + err = audit_receive_filter(msg_type, NETLINK_CB(skb).pid, | |
802 | 802 | uid, seq, data, nlmsg_len(nlh), |
803 | 803 | loginuid, sessionid, sid); |
804 | 804 | break; |