Skip to content

Commit cda31e1

Browse files
jiribohacdavem330
authored andcommitted
ipv6: clean up rt6_clean_expires
Functionally, this change is a NOP. Semantically, rt6_clean_expires() wants to do rt->dst.from = NULL instead of rt->dst.expires = 0. It is clearing the RTF_EXPIRES flag, so the union is going to be treated as a pointer (dst.from) not a long (dst.expires). Signed-off-by: Jiri Bohac <jbohac@suse.cz> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent edfb5d4 commit cda31e1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

‎include/net/ip6_fib.h‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -129,7 +129,7 @@ static inline void rt6_clean_expires(struct rt6_info *rt)
129129
dst_release(rt->dst.from);
130130

131131
rt->rt6i_flags &= ~RTF_EXPIRES;
132-
rt->dst.expires = 0;
132+
rt->dst.from = NULL;
133133
}
134134

135135
static inline void rt6_set_expires(struct rt6_info *rt, unsigned long expires)

0 commit comments

Comments
 (0)