summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorSabrina Dubroca <sd@queasysnail.net>2022-11-24 15:43:40 +0100
committerSteffen Klassert <steffen.klassert@secunet.com>2022-11-25 10:11:40 +0100
commit880e475d2b0b1131a6e91464b2145820893e4ddf (patch)
tree9f46aaa09465f1fcd8368e6324c9d549f28bd6d9
parenta25b19f36f921b90bcb826c80b568266b8ad40a4 (diff)
downloadlinux-stable-880e475d2b0b1131a6e91464b2145820893e4ddf.tar.gz
linux-stable-880e475d2b0b1131a6e91464b2145820893e4ddf.tar.bz2
linux-stable-880e475d2b0b1131a6e91464b2145820893e4ddf.zip
xfrm: add extack to xfrm_del_sa
Signed-off-by: Sabrina Dubroca <sd@queasysnail.net> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
-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;