]> 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)
commita83eb29052780eae8d48a00ac46efe10f836a6ad
tree756d637636ef7f074cbfda1838444af44109d740
parenta740fd99a35666ff95d9c7f6412739d7a37571fc
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: 20282d0ee6061 ("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