aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/intel/i40e
diff options
context:
space:
mode:
authorAlice Michael <alice.michael@intel.com>2018-10-26 14:33:31 -0700
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2018-11-14 10:56:33 -0800
commit843faff87af261bf55eda719a06087af0486a168 (patch)
tree815fdca8b6ff448ebc254a8250b6c6d3da744b66 /drivers/net/ethernet/intel/i40e
parentvirtchnl: white space and reorder (diff)
downloadlinux-dev-843faff87af261bf55eda719a06087af0486a168.tar.xz
linux-dev-843faff87af261bf55eda719a06087af0486a168.zip
virtchnl: Fix off by one error
When calculating the valid length for a VIRTCHNL_OP_ENABLE_CHANNELS message, we accidentally allowed messages with one extra virtchnl_channel_info structure on the end. This happened due to an off by one error, because we forgot that valid_len already accounted for one virtchnl_channel_info structure, so we need to subtract one from the num_tc value. Signed-off-by: Alice Michael <alice.michael@intel.com> Tested-by: Andrew Bowers <andrewx.bowers@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
Diffstat (limited to 'drivers/net/ethernet/intel/i40e')
0 files changed, 0 insertions, 0 deletions