提交 7c4b50b0 编写于 作者: D Dmitry Kozlov

ipoe_mod: fixed ipv6 from non-shared mode (v2)

上级 e2dcd005
......@@ -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);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册