mirror of
https://github.com/tbsdtv/linux_media.git
synced 2025-07-23 04:33:26 +02:00
Merge ra.kernel.org:/pub/scm/linux/kernel/git/netdev/net
Some of the devlink bits were tricky, but I think I got it right. Signed-off-by: David S. Miller <davem@davemloft.net>
This commit is contained in:
@@ -982,9 +982,12 @@ static inline void sock_recv_drops(struct msghdr *msg, struct sock *sk,
|
||||
static void sock_recv_mark(struct msghdr *msg, struct sock *sk,
|
||||
struct sk_buff *skb)
|
||||
{
|
||||
if (sock_flag(sk, SOCK_RCVMARK) && skb)
|
||||
put_cmsg(msg, SOL_SOCKET, SO_MARK, sizeof(__u32),
|
||||
&skb->mark);
|
||||
if (sock_flag(sk, SOCK_RCVMARK) && skb) {
|
||||
/* We must use a bounce buffer for CONFIG_HARDENED_USERCOPY=y */
|
||||
__u32 mark = skb->mark;
|
||||
|
||||
put_cmsg(msg, SOL_SOCKET, SO_MARK, sizeof(__u32), &mark);
|
||||
}
|
||||
}
|
||||
|
||||
void __sock_recv_cmsgs(struct msghdr *msg, struct sock *sk,
|
||||
|
Reference in New Issue
Block a user