]> git.baikalelectronics.ru Git - kernel.git/commit
net: bcmgenet: return EOPNOTSUPP for unknown ioctl commands
authorDoug Berger <opendmb@gmail.com>
Tue, 14 Mar 2017 00:41:39 +0000 (17:41 -0700)
committerDavid S. Miller <davem@davemloft.net>
Tue, 14 Mar 2017 04:51:50 +0000 (21:51 -0700)
commit21d78ea3bbd136f921d9a04b11b7afc28fe1debf
tree4a74887cc0907c9cafa210f7d2abbf1320b0c12b
parent2d4b875dcae67b98c906bc392db147720dad7043
net: bcmgenet: return EOPNOTSUPP for unknown ioctl commands

This commit changes the ioctl handling behavior to return the
EOPNOTSUPP error code instead of the EINVAL error code when an
unknown ioctl command value is detected.

It also removes some redundant parsing of the ioctl command value
and allows the SIOCSHWTSTAMP value to be handled.

Signed-off-by: Doug Berger <opendmb@gmail.com>
Reviewed-by: Florian Fainelli <f.fainelli@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/broadcom/genet/bcmgenet.c