path: root/ethtool.c
diff options
authorAlexander Duyck <>2012-07-13 09:55:29 -0700
committerBen Hutchings <>2012-07-16 21:23:35 +0100
commitb17dcb99726427b6f7a26be8c46023c5d7d15e08 (patch)
treed2b11903305b270a9103f2c45615e52662d7fbd8 /ethtool.c
parentddb63dfb98296d01f5c06058d975d54939704f56 (diff)
ethtool: Resolve use of uninitialized memory in rxclass_get_dev_info
The ethtool function for getting the rule count was not zeroing out the data field before passing it to the kernel. As a result the value started uninitialized and was incorrectly returning a result indicating that devices supported setting new rule indexes. In order to correct this I am adding a one line fix that sets data to zero before we pass the command to the kernel. Signed-off-by: Alexander Duyck <> Signed-off-by: Ben Hutchings <>
Diffstat (limited to 'ethtool.c')
0 files changed, 0 insertions, 0 deletions