Message ID | 20221126110303.1859238-7-steffen.klassert@secunet.com (mailing list archive) |
---|---|
State | Accepted |
Commit | 880e475d2b0b1131a6e91464b2145820893e4ddf |
Delegated to: | Netdev Maintainers |
Headers | show |
Series | [01/10] esp6: remove redundant variable err | expand |
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index 1664baefae80..06a379d35ebb 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c @@ -862,12 +862,12 @@ static int xfrm_del_sa(struct sk_buff *skb, struct nlmsghdr *nlh, goto out; if (xfrm_state_kern(x)) { + NL_SET_ERR_MSG(extack, "SA is in use by tunnels"); err = -EPERM; goto out; } err = xfrm_state_delete(x); - if (err < 0) goto out;