]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commitf53b9013d2912b71417d6f458ad4f34a017de7f8
treed7edf1ef81aa9c9b73b93413bfdcc5ef8116c3e5
parent642b28b6acf4e839a5a2174bb3ae3fd0fee78dcc
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: ea14d5680df1 ("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