Skip to content

Commit cafb396

Browse files
sf-hgkdavem330
authored andcommitted
sfc: correctly initialise filter rwsem for farch
Fixes: fc7a6c2 ("sfc: use a semaphore to lock farch filters too") Suggested-by: Joseph Korty <[email protected]> Signed-off-by: Bert Kenward <[email protected]> Signed-off-by: David S. Miller <[email protected]>
1 parent 713b4a3 commit cafb396

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

drivers/net/ethernet/sfc/farch.c

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2794,6 +2794,7 @@ int efx_farch_filter_table_probe(struct efx_nic *efx)
27942794
if (!state)
27952795
return -ENOMEM;
27962796
efx->filter_state = state;
2797+
init_rwsem(&state->lock);
27972798

27982799
table = &state->table[EFX_FARCH_FILTER_TABLE_RX_IP];
27992800
table->id = EFX_FARCH_FILTER_TABLE_RX_IP;

0 commit comments

Comments
 (0)