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

Commit 7677c756 authored by Vegard Nossum's avatar Vegard Nossum Committed by Steffen Klassert
Browse files

xfrm: get rid of another incorrect WARN



During fuzzing I regularly run into this WARN(). According to Herbert Xu,
this "certainly shouldn't be a WARN, it probably shouldn't print anything
either".

Cc: Stephen Hemminger <stephen@networkplumber.org>
Cc: Steffen Klassert <steffen.klassert@secunet.com>
Cc: Herbert Xu <herbert@gondor.apana.org.au>
Signed-off-by: default avatarVegard Nossum <vegard.nossum@oracle.com>
Signed-off-by: default avatarSteffen Klassert <steffen.klassert@secunet.com>
parent 73efc324
Loading
Loading
Loading
Loading
+0 −3
Original line number Diff line number Diff line
@@ -2051,9 +2051,6 @@ static int xfrm_add_pol_expire(struct sk_buff *skb, struct nlmsghdr *nlh,
	if (up->hard) {
		xfrm_policy_delete(xp, p->dir);
		xfrm_audit_policy_delete(xp, 1, true);
	} else {
		// reset the timers here?
		WARN(1, "Don't know what to do with soft policy expire\n");
	}
	km_policy_expired(xp, p->dir, up->hard, nlh->nlmsg_pid);