[PATCH net] sfc: correctly initialise filter rwsem for farch

Subsystems: networking drivers, sfc network driver, the rest

STALE2953d

2 messages, 2 authors, 2018-06-30 · open the first message on its own page

[PATCH net] sfc: correctly initialise filter rwsem for farch

From: Bert Kenward <hidden>
Date: 2018-06-29 15:29:42

Fixes: fc7a6c287ff3 ("sfc: use a semaphore to lock farch filters too")
Suggested-by: Joseph Korty <redacted>
Signed-off-by: Bert Kenward <redacted>
---
 drivers/net/ethernet/sfc/farch.c | 1 +
 1 file changed, 1 insertion(+)
diff --git a/drivers/net/ethernet/sfc/farch.c b/drivers/net/ethernet/sfc/farch.c
index 8edf20967c82..e045a5d6b938 100644
--- a/drivers/net/ethernet/sfc/farch.c
+++ b/drivers/net/ethernet/sfc/farch.c
@@ -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;
-- 
2.13.6

Re: [PATCH net] sfc: correctly initialise filter rwsem for farch

From: David Miller <davem@davemloft.net>
Date: 2018-06-30 12:18:16

From: Bert Kenward <redacted>
Date: Fri, 29 Jun 2018 16:29:28 +0100
Fixes: fc7a6c287ff3 ("sfc: use a semaphore to lock farch filters too")
Suggested-by: Joseph Korty <redacted>
Signed-off-by: Bert Kenward <redacted>
Applied and queued up for -stable.
Keyboard shortcuts
hback out one level
jnext message in thread
kprevious message in thread
ldrill in
Escclose help / fold thread tree
?toggle this help