]> git.baikalelectronics.ru Git - kernel.git/commit
net: ethtool: Initialize buffer when querying device channel settings
authorEran Ben Elisha <eranbe@mellanox.com>
Tue, 17 Jan 2017 17:19:17 +0000 (19:19 +0200)
committerDavid S. Miller <davem@davemloft.net>
Wed, 18 Jan 2017 19:58:23 +0000 (14:58 -0500)
commit30c714381a97a1d754636b72403639fe7a10f86b
tree83014862d5299fa395f0009b85a1514c955da322
parent7ba51c103d66b61a06ac685eadc74b9ec2d51df1
net: ethtool: Initialize buffer when querying device channel settings

Ethtool channels respond struct was uninitialized when querying device
channel boundaries settings. As a result, unreported fields by the driver
hold garbage.  This may cause sending unsupported params to driver.

Fixes: a592bd9947e6 ('ethtool: ensure channel counts are within bounds ...')
Signed-off-by: Eran Ben Elisha <eranbe@mellanox.com>
Signed-off-by: Tariq Toukan <tariqt@mellanox.com>
CC: John W. Linville <linville@tuxdriver.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/core/ethtool.c