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

Commit 70837ffe authored by Dan Carpenter's avatar Dan Carpenter Committed by David S. Miller
Browse files

ipv4: frags: precedence bug in ip_expire()



We accidentally removed the parentheses here, but they are required
because '!' has higher precedence than '&'.

Fixes: fa0f5273 ("ip: use rb trees for IP frag queue.")
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 74c05a33
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -154,7 +154,7 @@ static void ip_expire(struct timer_list *t)
	__IP_INC_STATS(net, IPSTATS_MIB_REASMFAILS);
	__IP_INC_STATS(net, IPSTATS_MIB_REASMTIMEOUT);

	if (!qp->q.flags & INET_FRAG_FIRST_IN)
	if (!(qp->q.flags & INET_FRAG_FIRST_IN))
		goto out;

	/* sk_buff::dev and sk_buff::rbnode are unionized. So we