mirror of
https://github.com/torvalds/linux.git
synced 2025-12-07 20:06:24 +00:00
All DST_NOCACHE rt6_info used to have rt->dst.from set to its parent. After commit8e3d5be736("ipv6: Avoid double dst_free"), DST_NOCACHE is also set to rt6_info which does not have a parent (i.e. rt->dst.from is NULL). This patch catches the rt->dst.from == NULL case. Fixes:8e3d5be736("ipv6: Avoid double dst_free") Signed-off-by: Martin KaFai Lau <kafai@fb.com> Cc: Hannes Frederic Sowa <hannes@stressinduktion.org> Signed-off-by: David S. Miller <davem@davemloft.net>