Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

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

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
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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;