* [PATCH net-next] octeon_ep: unlock the correct lock on error path
@ 2023-03-29 6:51 Dan Carpenter
2023-03-29 18:21 ` Leon Romanovsky
2023-03-30 5:20 ` patchwork-bot+netdevbpf
0 siblings, 2 replies; 3+ messages in thread
From: Dan Carpenter @ 2023-03-29 6:51 UTC (permalink / raw)
To: Veerasenareddy Burru
Cc: Abhijit Ayarekar, David S. Miller, Eric Dumazet, Jakub Kicinski,
Paolo Abeni, netdev, kernel-janitors
The h and the f letters are swapped so it unlocks the wrong lock.
Fixes: 577f0d1b1c5f ("octeon_ep: add separate mailbox command and response queues")
Signed-off-by: Dan Carpenter <error27@gmail.com>
---
Thees vairable nmaes are terirble. The huamn mnid deos not raed ervey
lteter by istlef, but the wrod as a wlohe.
https://www.dictionary.com/e/typoglycemia/
drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_mbox.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_mbox.c b/drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_mbox.c
index a4ee6f3ae354..035ead7935c7 100644
--- a/drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_mbox.c
+++ b/drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_mbox.c
@@ -167,7 +167,7 @@ int octep_ctrl_mbox_send(struct octep_ctrl_mbox *mbox, struct octep_ctrl_mbox_ms
ci = readl(q->hw_cons);
if (octep_ctrl_mbox_circq_space(pi, ci, q->sz) < (msg->hdr.s.sz + mbox_hdr_sz)) {
- mutex_unlock(&mbox->f2hq_lock);
+ mutex_unlock(&mbox->h2fq_lock);
return -EAGAIN;
}
--
2.39.1
^ permalink raw reply related [flat|nested] 3+ messages in thread* Re: [PATCH net-next] octeon_ep: unlock the correct lock on error path
2023-03-29 6:51 [PATCH net-next] octeon_ep: unlock the correct lock on error path Dan Carpenter
@ 2023-03-29 18:21 ` Leon Romanovsky
2023-03-30 5:20 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: Leon Romanovsky @ 2023-03-29 18:21 UTC (permalink / raw)
To: Dan Carpenter
Cc: Veerasenareddy Burru, Abhijit Ayarekar, David S. Miller,
Eric Dumazet, Jakub Kicinski, Paolo Abeni, netdev,
kernel-janitors
On Wed, Mar 29, 2023 at 09:51:37AM +0300, Dan Carpenter wrote:
> The h and the f letters are swapped so it unlocks the wrong lock.
>
> Fixes: 577f0d1b1c5f ("octeon_ep: add separate mailbox command and response queues")
> Signed-off-by: Dan Carpenter <error27@gmail.com>
> ---
> Thees vairable nmaes are terirble. The huamn mnid deos not raed ervey
> lteter by istlef, but the wrod as a wlohe.
>
> https://www.dictionary.com/e/typoglycemia/
>
> drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_mbox.c | 2 +-
> 1 file changed, 1 insertion(+), 1 deletion(-)
>
Thanks,
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
^ permalink raw reply [flat|nested] 3+ messages in thread* Re: [PATCH net-next] octeon_ep: unlock the correct lock on error path
2023-03-29 6:51 [PATCH net-next] octeon_ep: unlock the correct lock on error path Dan Carpenter
2023-03-29 18:21 ` Leon Romanovsky
@ 2023-03-30 5:20 ` patchwork-bot+netdevbpf
1 sibling, 0 replies; 3+ messages in thread
From: patchwork-bot+netdevbpf @ 2023-03-30 5:20 UTC (permalink / raw)
To: Dan Carpenter
Cc: vburru, aayarekar, davem, edumazet, kuba, pabeni, netdev,
kernel-janitors
Hello:
This patch was applied to netdev/net-next.git (main)
by Jakub Kicinski <kuba@kernel.org>:
On Wed, 29 Mar 2023 09:51:37 +0300 you wrote:
> The h and the f letters are swapped so it unlocks the wrong lock.
>
> Fixes: 577f0d1b1c5f ("octeon_ep: add separate mailbox command and response queues")
> Signed-off-by: Dan Carpenter <error27@gmail.com>
> ---
> Thees vairable nmaes are terirble. The huamn mnid deos not raed ervey
> lteter by istlef, but the wrod as a wlohe.
>
> [...]
Here is the summary with links:
- [net-next] octeon_ep: unlock the correct lock on error path
https://git.kernel.org/netdev/net-next/c/765f3604641e
You are awesome, thank you!
--
Deet-doot-dot, I am a bot.
https://korg.docs.kernel.org/patchwork/pwbot.html
^ permalink raw reply [flat|nested] 3+ messages in thread
end of thread, other threads:[~2023-03-30 5:20 UTC | newest]
Thread overview: 3+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2023-03-29 6:51 [PATCH net-next] octeon_ep: unlock the correct lock on error path Dan Carpenter
2023-03-29 18:21 ` Leon Romanovsky
2023-03-30 5:20 ` patchwork-bot+netdevbpf
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).