aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/net/ethernet/moxa
diff options
context:
space:
mode:
authorSlawomir Laba <slawomirx.laba@intel.com>2019-07-23 06:01:39 -0400
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>2019-08-22 13:24:14 -0700
commit9889707b06acfe9bb37a6edcaae627d4a5eacc72 (patch)
tree80a0c117a328e4565283adc33ce45216f33ddaa8 /drivers/net/ethernet/moxa
parenti40e: reset veb.tc_stats when resetting veb.stats (diff)
downloadlinux-dev-9889707b06acfe9bb37a6edcaae627d4a5eacc72.tar.xz
linux-dev-9889707b06acfe9bb37a6edcaae627d4a5eacc72.zip
i40e: Fix crash caused by stress setting of VF MAC addresses
Add update to the VSI pointer passed to the i40e_set_vf_mac function. If VF is in reset state the driver waits in i40e_set_vf_mac function for the reset to be complete, yet after reset the vsi pointer that was passed into this function is no longer valid. The patch updates local VSI pointer directly from pf->vsi array, by using the id stored in VF pointer (lan_vsi_idx). Without this commit the driver might occasionally invoke general protection fault in kernel and disable the OS entirely. Signed-off-by: Slawomir Laba <slawomirx.laba@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/moxa')
0 files changed, 0 insertions, 0 deletions