]> git.karo-electronics.de Git - karo-tx-linux.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)
commit54fecff3461143bfc4c4f0431e9145e8748977ce
tree4a74887cc0907c9cafa210f7d2abbf1320b0c12b
parentc4d453d2b14d4c844fd6b492fbd16ce0615a59d8
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