connector: bump skb->users before callback invocation
authorFlorian Westphal <fw@strlen.de>
Thu, 31 Dec 2015 13:26:33 +0000 (14:26 +0100)
committerDavid S. Miller <davem@davemloft.net>
Tue, 5 Jan 2016 02:46:45 +0000 (21:46 -0500)
commit55285bf09427c5abf43ee1d54e892f352092b1f1
tree726080a4fd362374bad2386c02585d93ac78397b
parent3934aa4c1f7f4ccdff25f530b0e37d776ac453e2
connector: bump skb->users before callback invocation

Dmitry reports memleak with syskaller program.
Problem is that connector bumps skb usecount but might not invoke callback.

So move skb_get to where we invoke the callback.

Reported-by: Dmitry Vyukov <dvyukov@google.com>
Signed-off-by: Florian Westphal <fw@strlen.de>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/connector/connector.c