]> git.proxmox.com Git - mirror_ubuntu-hirsute-kernel.git/commit
sfc: add missing annotation for efx_ef10_try_update_nic_stats_vf()
authorJules Irenge <jbi.octave@gmail.com>
Mon, 1 Jun 2020 18:45:52 +0000 (19:45 +0100)
committerDavid S. Miller <davem@davemloft.net>
Mon, 1 Jun 2020 22:52:06 +0000 (15:52 -0700)
commitefd7ed0f5f2d07ccbb1853c5d46656cdfa1371fb
tree120194d8aac3480c66452f7c66f510deda8b8c4a
parent6abde0b241224347cd88e2ae75902e07f55c42cb
sfc: add missing annotation for efx_ef10_try_update_nic_stats_vf()

Sparse reports a warning at efx_ef10_try_update_nic_stats_vf()
warning: context imbalance in efx_ef10_try_update_nic_stats_vf()
- unexpected unlock
The root cause is the missing annotation at
efx_ef10_try_update_nic_stats_vf()
Add the missing _must_hold(&efx->stats_lock) annotation

Signed-off-by: Jules Irenge <jbi.octave@gmail.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
drivers/net/ethernet/sfc/ef10.c