]> git.baikalelectronics.ru Git - kernel.git/commit
appletalk: Fix socket referencing in skb
authorAndrey Utkin <andrey.krieger.utkin@gmail.com>
Mon, 7 Jul 2014 20:22:50 +0000 (23:22 +0300)
committerDavid S. Miller <davem@davemloft.net>
Wed, 9 Jul 2014 02:39:43 +0000 (19:39 -0700)
commit7311116a74ed20ab8357bce2b98b556ce86a350a
tree22af97ed421e6e98645259a4f39b5787e909915c
parent49287e5147f70bfc107ebcd67af0f2e524793df2
appletalk: Fix socket referencing in skb

Setting just skb->sk without taking its reference and setting a
destructor is invalid. However, in the places where this was done, skb
is used in a way not requiring skb->sk setting. So dropping the setting
of skb->sk.
Thanks to Eric Dumazet <eric.dumazet@gmail.com> for correct solution.

Bugzilla: https://bugzilla.kernel.org/show_bug.cgi?id=79441
Reported-by: Ed Martin <edman007@edman007.com>
Signed-off-by: Andrey Utkin <andrey.krieger.utkin@gmail.com>
Signed-off-by: Eric Dumazet <edumazet@google.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/appletalk/ddp.c