i40evf: Fix double locking the same resource
authorPaweł Jabłoński <pawel.jablonski@intel.com>
Mon, 5 Feb 2018 21:03:36 +0000 (13:03 -0800)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Mon, 26 Feb 2018 20:29:41 +0000 (12:29 -0800)
commit8cd5fe62cc5a2aca1c698c28baa46ac6931ba11f
treed7edf1ef81aa9c9b73b93413bfdcc5ef8116c3e5
parentc3880bd159d431d06b687b0b5ab22e24e6ef0070
i40evf: Fix double locking the same resource

Removes the locking of adapter->mac_vlan_list_lock resource in
i40evf_add_filter(). The locking part is moved above i40evf_add_filter().
i40evf_add_filter(), called by i40evf_addr_sync(), was trying to lock the
resource again and double locking generated a kernel panic after bringing
an interface up.

Fixes: 8946b56354b7 ("i40evf: use __dev_[um]c_sync routines in
       .set_rx_mode")
Signed-off-by: Paweł Jabłoński <pawel.jablonski@intel.com>
Tested-by: Andrew Bowers <andrewx.bowers@intel.com>
Signed-off-by: Jeff Kirsher <jeffrey.t.kirsher@intel.com>
drivers/net/ethernet/intel/i40evf/i40evf_main.c