aboutsummaryrefslogtreecommitdiffstats
path: root/net/xfrm
diff options
context:
space:
mode:
authorYi Zhao <yi.zhao@windriver.com>2016-11-29 18:09:01 +0800
committerSteffen Klassert <steffen.klassert@secunet.com>2016-11-30 10:58:53 +0100
commit83e2d0587ae859aae75fd9d246c409b10a6bd137 (patch)
tree7aad735fd78925ff1fbf2a0fcac5750f0d43e6e7 /net/xfrm
parentMerge branch 'fixed-phy-phydev-leaks' (diff)
downloadlinux-dev-83e2d0587ae859aae75fd9d246c409b10a6bd137.tar.xz
linux-dev-83e2d0587ae859aae75fd9d246c409b10a6bd137.zip
xfrm_user: fix return value from xfrm_user_rcv_msg
It doesn't support to run 32bit 'ip' to set xfrm objdect on 64bit host. But the return value is unknown for user program: ip xfrm policy list RTNETLINK answers: Unknown error 524 Replace ENOTSUPP with EOPNOTSUPP: ip xfrm policy list RTNETLINK answers: Operation not supported Signed-off-by: Yi Zhao <yi.zhao@windriver.com> Signed-off-by: Steffen Klassert <steffen.klassert@secunet.com>
Diffstat (limited to 'net/xfrm')
-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 08892091cfe3..671a1d0333f0 100644
--- a/net/xfrm/xfrm_user.c
+++ b/net/xfrm/xfrm_user.c
@@ -2450,7 +2450,7 @@ static int xfrm_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh)
#ifdef CONFIG_COMPAT
if (in_compat_syscall())
- return -ENOTSUPP;
+ return -EOPNOTSUPP;
#endif
type = nlh->nlmsg_type;