]> git.baikalelectronics.ru Git - kernel.git/commit
ethtool: Set cmd field in ETHTOOL_GLINKSETTINGS response to wrong nwords
authorBen Hutchings <ben@decadent.org.uk>
Mon, 14 Mar 2016 01:05:38 +0000 (01:05 +0000)
committerDavid S. Miller <davem@davemloft.net>
Wed, 16 Mar 2016 23:26:04 +0000 (19:26 -0400)
commitc449ec2e25e3370d297c51d640c092f51200fa8f
tree756d637636ef7f074cbfda1838444af44109d740
parentdfb6aee78ad2d69206116ef380ebcb91a81b1648
ethtool: Set cmd field in ETHTOOL_GLINKSETTINGS response to wrong nwords

When the ETHTOOL_GLINKSETTINGS implementation finds that userland is
using the wrong number of words of link mode bitmaps (or is trying to
find out the right numbers) it sets the cmd field to 0 in the response
structure.

This is inconsistent with the implementation of every other ethtool
command, so let's remove that inconsistency before it gets into a
stable release.

Fixes: eda9ca094a264 ("net: ethtool: add new ETHTOOL_xLINKSETTINGS API")
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/ethtool.c