tipc: send explicit not supported error in nl compat
authorRichard Alpe <richard.alpe@ericsson.com>
Wed, 6 May 2015 11:58:56 +0000 (13:58 +0200)
committerDavid S. Miller <davem@davemloft.net>
Sat, 9 May 2015 20:40:03 +0000 (16:40 -0400)
commitb063bc5ea77b1c1c0e7798f641f53504d0f64bf8
treef4b5be88e60e36a238012842e9a816fdd566ce5f
parent670f4f8818ee54d0c1831e3165dadd5b8a3f713e
tipc: send explicit not supported error in nl compat

The legacy netlink API treated EPERM (permission denied) as
"operation not supported".

Reported-by: Tomi Ollila <tomi.ollila@iki.fi>
Signed-off-by: Richard Alpe <richard.alpe@ericsson.com>
Reviewed-by: Erik Hugne <erik.hugne@ericsson.com>
Reviewed-by: Ying Xue <ying.xue@windriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/tipc/netlink_compat.c