Skip to content

Commit efd7ed0

Browse files
irengedavem330
authored andcommitted
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 <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 6abde0b commit efd7ed0

File tree

1 file changed

+1
-0
lines changed
  • drivers/net/ethernet/sfc

1 file changed

+1
-0
lines changed

drivers/net/ethernet/sfc/ef10.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1819,6 +1819,7 @@ static size_t efx_ef10_update_stats_pf(struct efx_nic *efx, u64 *full_stats,
18191819
}
18201820

18211821
static int efx_ef10_try_update_nic_stats_vf(struct efx_nic *efx)
1822+
__must_hold(&efx->stats_lock)
18221823
{
18231824
MCDI_DECLARE_BUF(inbuf, MC_CMD_MAC_STATS_IN_LEN);
18241825
struct efx_ef10_nic_data *nic_data = efx->nic_data;

0 commit comments

Comments
 (0)