summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorDmitry Kozlov <xeb@mail.ru>2018-03-20 13:29:43 +0300
committerDmitry Kozlov <xeb@mail.ru>2018-03-20 13:29:43 +0300
commit7c4b50b060a365c032fcf5f54db307b0f5ac2e41 (patch)
tree902a9c50594e0c22fd9f877ddd8979ecdd28b0c8
parente2dcd0051424c67756f6a7339d329897f1af713b (diff)
downloadaccel-ppp-7c4b50b060a365c032fcf5f54db307b0f5ac2e41.tar.gz
accel-ppp-7c4b50b060a365c032fcf5f54db307b0f5ac2e41.zip
ipoe_mod: fixed ipv6 from non-shared mode (v2)
-rw-r--r--drivers/ipoe/ipoe.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/drivers/ipoe/ipoe.c b/drivers/ipoe/ipoe.c
index 4951c536..f3acb3f5 100644
--- a/drivers/ipoe/ipoe.c
+++ b/drivers/ipoe/ipoe.c
@@ -784,13 +784,12 @@ static struct ipoe_session *ipoe_lookup_rt6(struct sk_buff *skb, const struct in
if (!dst)
return NULL;
+ *dev = dst->dev;
+
if (dst->error || dst->dev->netdev_ops != &ipoe_netdev_ops) {
dst_release(dst);
return NULL;
}
-
- *dev = dst->dev;
-
ses = netdev_priv(*dev);
atomic_inc(&ses->refs);