linux/net/can
Oliver Hartkopp 473d924d7d can: fix ioctl function removal
Commit 60649d4e0a ("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 commands like SIOCGIFINDEX
to the network driver layer.

This patch fixes the wrong return codes in the CAN network layer protocols.

Reported-by: kernel test robot <rong.a.chen@intel.com>
Fixes: 60649d4e0a ("can: remove obsolete empty ioctl() handler")
Signed-off-by: Oliver Hartkopp <socketcan@hartkopp.net>
Signed-off-by: David S. Miller <davem@davemloft.net>
2019-07-29 14:12:35 -07:00
..
af_can.c can: Add SPDX license identifiers for CAN subsystem 2019-07-24 10:31:55 +02:00
af_can.h can: Add SPDX license identifiers for CAN subsystem 2019-07-24 10:31:55 +02:00
bcm.c can: fix ioctl function removal 2019-07-29 14:12:35 -07:00
gw.c can: Add SPDX license identifiers for CAN subsystem 2019-07-24 10:31:55 +02:00
Kconfig can: Kconfig: correct history of the CAN protocol 2019-07-24 10:31:55 +02:00
Makefile License cleanup: add SPDX GPL-2.0 license identifier to files with no license 2017-11-02 11:10:55 +01:00
proc.c can: Add SPDX license identifiers for CAN subsystem 2019-07-24 10:31:55 +02:00
raw.c can: fix ioctl function removal 2019-07-29 14:12:35 -07:00