From: Eric Dumazet <eric.dumazet@gmail.com>
Date: Thu, 28 May 2009 11:14:49 +0000 (+0000)
Subject: atm: unset IFF_XMIT_DST_RELEASE in clip_setup()
X-Git-Url: https://git.stricted.de/?a=commitdiff_plain;h=a489e51c1a69c3aa7e7aea925f71c92be5cedbb1;p=GitHub%2FLineageOS%2Fandroid_kernel_samsung_universal7580.git

atm: unset IFF_XMIT_DST_RELEASE in clip_setup()

clip_start_xmit() needs skb->dst so tell dev_hard_start_xmit()
to no release it.

Signed-off-by: Eric Dumazet <eric.dumazet@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
---

diff --git a/net/atm/clip.c b/net/atm/clip.c
index 5597b87b9e6..fb7623c080f 100644
--- a/net/atm/clip.c
+++ b/net/atm/clip.c
@@ -557,6 +557,7 @@ static void clip_setup(struct net_device *dev)
 	/* without any more elaborate queuing. 100 is a reasonable */
 	/* compromise between decent burst-tolerance and protection */
 	/* against memory hogs. */
+	dev->priv_flags &= ~IFF_XMIT_DST_RELEASE;
 }
 
 static int clip_create(int number)