Skip to content

Commit 62fe2a8

Browse files
jacob-kellerJeff Kirsher
authored andcommitted
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 <[email protected]> Tested-by: Andrew Bowers <[email protected]> Signed-off-by: Jeff Kirsher <[email protected]>
1 parent 42bce04 commit 62fe2a8

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

drivers/net/ethernet/intel/i40evf/i40evf_main.c

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1420,7 +1420,9 @@ int i40evf_init_interrupt_scheme(struct i40evf_adapter *adapter)
14201420
{
14211421
int err;
14221422

1423+
rtnl_lock();
14231424
err = i40evf_set_interrupt_capability(adapter);
1425+
rtnl_unlock();
14241426
if (err) {
14251427
dev_err(&adapter->pdev->dev,
14261428
"Unable to setup interrupt capabilities\n");

0 commit comments

Comments
 (0)