igc: Fix locking issue when retrieving NFC rules
authorAndre Guedes <andre.guedes@intel.com>
Fri, 24 Apr 2020 20:16:14 +0000 (13:16 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Sat, 23 May 2020 01:21:51 +0000 (18:21 -0700)
commitb500350a36ae6e83a03931723b787b771f411817
treeff78765dbb2c79c7a5488bb0cefe0208aed22f97
parentd3ba9e6f6157e6fa047d853936dabb981e315080
igc: Fix locking issue when retrieving NFC rules

Access to NFC rules stored in adapter->nfc_rule_list is protect by
adapter->nfc_rule_lock. The functions igc_ethtool_get_nfc_rule()
and igc_ethtool_get_nfc_rules() are missing to hold the lock while
accessing rule objects.

Signed-off-by: Andre Guedes <andre.guedes@intel.com>
Tested-by: Aaron Brown <aaron.f.brown@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/igc/igc_ethtool.c