aboutsummaryrefslogtreecommitdiffstats
path: root/net/decnet/dn_route.c
diff options
context:
space:
mode:
Diffstat (limited to 'net/decnet/dn_route.c')
-rw-r--r--net/decnet/dn_route.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c
index 94f4ec036669..f31ce72dca65 100644
--- a/net/decnet/dn_route.c
+++ b/net/decnet/dn_route.c
@@ -244,7 +244,7 @@ static int dn_dst_gc(struct dst_ops *ops)
244 */ 244 */
245static void dn_dst_update_pmtu(struct dst_entry *dst, u32 mtu) 245static void dn_dst_update_pmtu(struct dst_entry *dst, u32 mtu)
246{ 246{
247 struct neighbour *n = dst_get_neighbour(dst); 247 struct neighbour *n = dst_get_neighbour_noref(dst);
248 u32 min_mtu = 230; 248 u32 min_mtu = 230;
249 struct dn_dev *dn; 249 struct dn_dev *dn;
250 250
@@ -713,7 +713,7 @@ out:
713static int dn_to_neigh_output(struct sk_buff *skb) 713static int dn_to_neigh_output(struct sk_buff *skb)
714{ 714{
715 struct dst_entry *dst = skb_dst(skb); 715 struct dst_entry *dst = skb_dst(skb);
716 struct neighbour *n = dst_get_neighbour(dst); 716 struct neighbour *n = dst_get_neighbour_noref(dst);
717 717
718 return n->output(n, skb); 718 return n->output(n, skb);
719} 719}
@@ -728,7 +728,7 @@ static int dn_output(struct sk_buff *skb)
728 728
729 int err = -EINVAL; 729 int err = -EINVAL;
730 730
731 if ((neigh = dst_get_neighbour(dst)) == NULL) 731 if ((neigh = dst_get_neighbour_noref(dst)) == NULL)
732 goto error; 732 goto error;
733 733
734 skb->dev = dev; 734 skb->dev = dev;
@@ -852,7 +852,7 @@ static int dn_rt_set_next_hop(struct dn_route *rt, struct dn_fib_res *res)
852 } 852 }
853 rt->rt_type = res->type; 853 rt->rt_type = res->type;
854 854
855 if (dev != NULL && dst_get_neighbour(&rt->dst) == NULL) { 855 if (dev != NULL && dst_get_neighbour_noref(&rt->dst) == NULL) {
856 n = __neigh_lookup_errno(&dn_neigh_table, &rt->rt_gateway, dev); 856 n = __neigh_lookup_errno(&dn_neigh_table, &rt->rt_gateway, dev);
857 if (IS_ERR(n)) 857 if (IS_ERR(n))
858 return PTR_ERR(n); 858 return PTR_ERR(n);