]> 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)
commit5967c68b66ab98e492be5ba452dd0fbc50ef3cf5
tree4a74887cc0907c9cafa210f7d2abbf1320b0c12b
parent64186bc7edb4eb18634c7ef4cfac63b586073869
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