diff options
author | Yi Zhao <yi.zhao@windriver.com> | 2016-11-29 18:09:01 +0800 |
---|---|---|
committer | Sasha Levin <alexander.levin@microsoft.com> | 2018-05-22 21:36:40 -0400 |
commit | bca5695f705359b8b666c787ba4f72ec3a42e2ea (patch) | |
tree | 84ccbcf81e214438f8d88e2a13a115138f6c5111 | |
parent | 1166de6371dd0d1c64b8ef371ba6812ac95ff7b2 (diff) | |
download | linux-stable-bca5695f705359b8b666c787ba4f72ec3a42e2ea.tar.gz linux-stable-bca5695f705359b8b666c787ba4f72ec3a42e2ea.tar.bz2 linux-stable-bca5695f705359b8b666c787ba4f72ec3a42e2ea.zip |
xfrm_user: fix return value from xfrm_user_rcv_msg
[ Upstream commit 83e2d0587ae859aae75fd9d246c409b10a6bd137 ]
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>
Signed-off-by: Sasha Levin <alexander.levin@microsoft.com>
-rw-r--r-- | net/xfrm/xfrm_user.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/net/xfrm/xfrm_user.c b/net/xfrm/xfrm_user.c index 65c18fc9bbd0..0f6285f9674e 100644 --- a/net/xfrm/xfrm_user.c +++ b/net/xfrm/xfrm_user.c @@ -2455,7 +2455,7 @@ static int xfrm_user_rcv_msg(struct sk_buff *skb, struct nlmsghdr *nlh) #ifdef CONFIG_COMPAT if (is_compat_task()) - return -ENOTSUPP; + return -EOPNOTSUPP; #endif type = nlh->nlmsg_type; |