aboutsummaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorLihong Yang <lihong.yang@intel.com>2019-06-05 12:45:16 -0700
committerDavid S. Miller <davem@davemloft.net>2019-06-05 16:53:25 -0700
commit80598e6230c7091e8377e97dc8678ca06a936f2a (patch)
tree1ae1ea308582392d5ea3cac3b7bba9b680ff2f64 /net
parenti40e: Do not check VF state in i40e_ndo_get_vf_config (diff)
downloadlinux-dev-80598e6230c7091e8377e97dc8678ca06a936f2a.tar.xz
linux-dev-80598e6230c7091e8377e97dc8678ca06a936f2a.zip
i40e: Check and set the PF driver state first in i40e_ndo_set_vf_mac
The PF driver state flag __I40E_VIRTCHNL_OP_PENDING needs to be checked and set at the beginning of i40e_ndo_set_vf_mac. Otherwise, if there are error conditions before it, the flag will be cleared unexpectedly by this function to cause potential race conditions. Hence move the check to the top of this function. Signed-off-by: Lihong Yang <lihong.yang@intel.com> Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com> Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'net')
0 files changed, 0 insertions, 0 deletions