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

Commit 7fed84f6 authored by David S. Miller's avatar David S. Miller
Browse files

ipv4: Fix time difference calculation in rt_bind_exception().

parent 1eb8c695
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -1907,7 +1907,7 @@ static void rt_bind_exception(struct rtable *rt, struct fib_nh *nh, __be32 daddr
		if (fnhe->fnhe_daddr == daddr) {
			if (fnhe->fnhe_pmtu) {
				unsigned long expires = fnhe->fnhe_expires;
				unsigned long diff = jiffies - expires;
				unsigned long diff = expires - jiffies;

				if (time_before(jiffies, expires)) {
					rt->rt_pmtu = fnhe->fnhe_pmtu;