xfrm_user: fix return value from xfrm_user_rcv_msg
authorYi Zhao <yi.zhao@windriver.com>
Tue, 29 Nov 2016 10:09:01 +0000 (18:09 +0800)
committerSteffen Klassert <steffen.klassert@secunet.com>
Wed, 30 Nov 2016 09:58:53 +0000 (10:58 +0100)
commit83e2d0587ae859aae75fd9d246c409b10a6bd137
tree7aad735fd78925ff1fbf2a0fcac5750f0d43e6e7
parentf2ebf2a6ca94e78be179e8c99d34c87efc5e8bfb
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>
net/xfrm/xfrm_user.c