diff options
Diffstat (limited to 'net/decnet/dn_route.c')
-rw-r--r-- | net/decnet/dn_route.c | 6 |
1 files changed, 6 insertions, 0 deletions
diff --git a/net/decnet/dn_route.c b/net/decnet/dn_route.c index 85a3604c87c8..26719779ad8e 100644 --- a/net/decnet/dn_route.c +++ b/net/decnet/dn_route.c | |||
@@ -184,6 +184,12 @@ static __inline__ unsigned int dn_hash(__le16 src, __le16 dst) | |||
184 | return dn_rt_hash_mask & (unsigned int)tmp; | 184 | return dn_rt_hash_mask & (unsigned int)tmp; |
185 | } | 185 | } |
186 | 186 | ||
187 | static inline void dst_rcu_free(struct rcu_head *head) | ||
188 | { | ||
189 | struct dst_entry *dst = container_of(head, struct dst_entry, rcu_head); | ||
190 | dst_free(dst); | ||
191 | } | ||
192 | |||
187 | static inline void dnrt_free(struct dn_route *rt) | 193 | static inline void dnrt_free(struct dn_route *rt) |
188 | { | 194 | { |
189 | call_rcu_bh(&rt->dst.rcu_head, dst_rcu_free); | 195 | call_rcu_bh(&rt->dst.rcu_head, dst_rcu_free); |