]> git.proxmox.com Git - mirror_ubuntu-eoan-kernel.git/commit
i40evf: add missing rtnl_lock() around i40evf_set_interrupt_capability
authorJacob Keller <jacob.e.keller@intel.com>
Wed, 27 Jul 2016 19:02:33 +0000 (12:02 -0700)
committerJeff Kirsher <jeffrey.t.kirsher@intel.com>
Thu, 18 Aug 2016 18:43:11 +0000 (11:43 -0700)
commit62fe2a865e6ddc92f574bafacf8376613d8c08f2
tree971b47f24b8bfa6b434a2de61060898b6fd3c4b8
parent42bce04ef392ccf1aac0086b1318d375287c8952
i40evf: add missing rtnl_lock() around i40evf_set_interrupt_capability

The function calls netif_set_real_num_(tx|rx)_queues, both of which
should be done only under rntl lock. Unfortunately the
i40evf_init_task did not hold the rtnl_lock as necessary. This patch
adds the locking needed.

Change-ID: Ib72a21c3ce22b71a226b16f9bbe0f5f8cc3e849b
Signed-off-by: Jacob Keller <jacob.e.keller@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