Message ID | bug-197861-28872-2OzysGRy9e@https.bugzilla.kernel.org/ (mailing list archive) |
---|---|
State | New, archived |
Headers | show |
diff --git a/net/core/skbuff.c b/net/core/skbuff.c index a95877a8ac8b..7c4ba11cb429 100644 --- a/net/core/skbuff.c +++ b/net/core/skbuff.c @@ -941,8 +941,14 @@ int skb_copy_ubufs(struct sk_buff *skb, gfp_t gfp_mask) if (!num_frags) return 0; - if (skb_shared(skb) || skb_unclone(skb, gfp_mask)) + if (skb_shared(skb)) { + WARN_ONCE(1, "shared skb"); return -EINVAL; + } + if (skb_unclone(skb, gfp_mask)) { + WARN_ONCE(1, "cloned skb"); + return -EINVAL; + } -- You are receiving this mail because: You are watching the assignee of the bug.