diff options
author | Dan Carpenter <error27@gmail.com> | 2023-03-29 09:51:37 +0300 |
---|---|---|
committer | Jakub Kicinski <kuba@kernel.org> | 2023-03-30 07:39:35 +0300 |
commit | 765f3604641e1524389e1d6431974d2bbcab14a7 (patch) | |
tree | 53148161180a254d23e55f5fbbff3963ed8385af /drivers/net | |
parent | 615927f1a487bd9066425df48d06cec3bb3d8dbb (diff) | |
download | linux-765f3604641e1524389e1d6431974d2bbcab14a7.tar.xz |
octeon_ep: unlock the correct lock on error path
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>
Reviewed-by: Leon Romanovsky <leonro@nvidia.com>
Link: https://lore.kernel.org/r/251aa2a2-913e-4868-aac9-0a90fc3eeeda@kili.mountain
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
Diffstat (limited to 'drivers/net')
-rw-r--r-- | drivers/net/ethernet/marvell/octeon_ep/octep_ctrl_mbox.c | 2 |
1 files changed, 1 insertions, 1 deletions
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; } |