Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit eb620482 authored by Linux Build Service Account's avatar Linux Build Service Account Committed by Gerrit - the friendly Code Review server
Browse files

Merge "ipv6: release rt6->rt6i_idev properly during ifdown"

parents 8cd9f171 3ac44670
Loading
Loading
Loading
Loading
+5 −8
Original line number Diff line number Diff line
@@ -349,17 +349,14 @@ static void ip6_dst_ifdown(struct dst_entry *dst, struct net_device *dev,
	struct net_device *loopback_dev =
		dev_net(dev)->loopback_dev;

	if (dev != loopback_dev) {
		if (idev && idev->dev == dev) {
			struct inet6_dev *loopback_idev =
				in6_dev_get(loopback_dev);
	if (idev && idev->dev != loopback_dev) {
		struct inet6_dev *loopback_idev = in6_dev_get(loopback_dev);
		if (loopback_idev) {
			rt->rt6i_idev = loopback_idev;
			in6_dev_put(idev);
		}
	}
}
}

static bool rt6_check_expired(const struct rt6_info *rt)
{