Re: [PATCH net-next] can: fix ioctl function removal

2019-07-29 Thread Marc Kleine-Budde
On 7/29/19 10:40 PM, Oliver Hartkopp wrote: > Commit 60649d4e0af ("can: remove obsolete empty ioctl() handler") replaced the > almost empty can_ioctl() function with sock_no_ioctl() which always returns > -EOPNOTSUPP. > > Even though we don't have any ioctl() functions on socket/network layer we

[PATCH net-next] can: fix ioctl function removal

2019-07-29 Thread Oliver Hartkopp
Commit 60649d4e0af ("can: remove obsolete empty ioctl() handler") replaced the almost empty can_ioctl() function with sock_no_ioctl() which always returns -EOPNOTSUPP. Even though we don't have any ioctl() functions on socket/network layer we need to return -ENOIOCTLCMD to be able to forward ioctl