aboutsummaryrefslogtreecommitdiffstats
path: root/net/xfrm/xfrm_user.c
diff options
context:
space:
mode:
authorSabrina Dubroca <[email protected]>2022-11-24 14:43:40 +0000
committerSteffen Klassert <[email protected]>2022-11-25 09:11:40 +0000
commit880e475d2b0b1131a6e91464b2145820893e4ddf (patch)
tree9f46aaa09465f1fcd8368e6324c9d549f28bd6d9 /net/xfrm/xfrm_user.c
parentxfrm: add extack to xfrm_add_sa_expire (diff)
downloadkernel-880e475d2b0b1131a6e91464b2145820893e4ddf.tar.gz
kernel-880e475d2b0b1131a6e91464b2145820893e4ddf.zip
xfrm: add extack to xfrm_del_sa
Signed-off-by: Sabrina Dubroca <[email protected]> Signed-off-by: Steffen Klassert <[email protected]>
Diffstat (limited to 'net/xfrm/xfrm_user.c')
-rw-r--r--net/xfrm/xfrm_user.c2
1 files changed, 1 insertions, 1 deletions
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;