projects
/
firefly-linux-kernel-4.4.55.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
netlink: don't orphan skb in netlink_trim()
[firefly-linux-kernel-4.4.55.git]
/
net
/
netlink
/
af_netlink.c
diff --git
a/net/netlink/af_netlink.c
b/net/netlink/af_netlink.c
index 978a61f7c87f19ec6f6e50ae8c75ecd83f114d4b..26779c24b1d4b276f667fb47d50feb0b5bdee21e 100644
(file)
--- a/
net/netlink/af_netlink.c
+++ b/
net/netlink/af_netlink.c
@@
-851,7
+851,7
@@
static struct sk_buff *netlink_trim(struct sk_buff *skb, gfp_t allocation)
{
int delta;
-
skb_orphan(skb
);
+
WARN_ON(skb->sk != NULL
);
delta = skb->end - skb->tail;
if (delta * 2 < skb->truesize)