提交 83e2d058 编写于 作者: Y Yi Zhao 提交者: Steffen Klassert

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: NYi Zhao <yi.zhao@windriver.com>
Signed-off-by: NSteffen Klassert <steffen.klassert@secunet.com>
上级 f2ebf2a6
......@@ -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;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册