[NETLINK]: Ignore !NLM_F_REQUEST messages directly in netlink_run_queue()
netlink_rcv_skb() is changed to skip messages which don't have the NLM_F_REQUEST bit to avoid every netlink family having to perform this check on their own. Signed-off-by: Thomas Graf <tgraf@suug.ch> Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:

committed by
David S. Miller

parent
33a0543cd9
commit
d35b685640
@@ -1858,9 +1858,6 @@ static int xfrm_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh, int *err
|
||||
struct xfrm_link *link;
|
||||
int type, min_len;
|
||||
|
||||
if (!(nlh->nlmsg_flags & NLM_F_REQUEST))
|
||||
return 0;
|
||||
|
||||
type = nlh->nlmsg_type;
|
||||
|
||||
/* A control message: ignore them */
|
||||
|
Reference in New Issue
Block a user