Commit cafb3960 authored by Bert Kenward's avatar Bert Kenward Committed by David S. Miller

sfc: correctly initialise filter rwsem for farch

Fixes: fc7a6c28 ("sfc: use a semaphore to lock farch filters too")
Suggested-by: default avatarJoseph Korty <joe.korty@concurrent-rt.com>
Signed-off-by: default avatarBert Kenward <bkenward@solarflare.com>
Signed-off-by: default avatarDavid S. Miller <davem@davemloft.net>
parent 713b4a33
......@@ -2794,6 +2794,7 @@ int efx_farch_filter_table_probe(struct efx_nic *efx)
if (!state)
return -ENOMEM;
efx->filter_state = state;
init_rwsem(&state->lock);
table = &state->table[EFX_FARCH_FILTER_TABLE_RX_IP];
table->id = EFX_FARCH_FILTER_TABLE_RX_IP;
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment