mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-01-06 05:06:29 +00:00
xfrm: add extack to xfrm_del_sa
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
This commit is contained in:
parent
a25b19f36f
commit
880e475d2b
@ -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;
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user