]> git.itanic.dy.fi Git - linux-stable/commitdiff
nouveau/gsp/r535: remove a stray unlock in r535_gsp_rpc_send()
authorDan Carpenter <dan.carpenter@linaro.org>
Mon, 27 Nov 2023 12:56:33 +0000 (15:56 +0300)
committerDanilo Krummrich <dakr@redhat.com>
Wed, 29 Nov 2023 02:04:41 +0000 (03:04 +0100)
This unlock doesn't belong here and it leads to a double unlock in
the caller, r535_gsp_rpc_push().

Fixes: 176fdcbddfd2 ("drm/nouveau/gsp/r535: add support for booting GSP-RM")
Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org>
Reviewed-by: Timur Tabi <ttabi@nvidia.com>
Signed-off-by: Danilo Krummrich <dakr@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/a0293812-c05d-45f0-a535-3f24fe582c02@moroto.mountain
drivers/gpu/drm/nouveau/nvkm/subdev/gsp/r535.c

index dc44f5c7833f60c165d5c01a0b2afd03e3e45294..818e5c73b7a65ef7b11eb7b76152845e1a975607 100644 (file)
@@ -365,10 +365,8 @@ r535_gsp_rpc_send(struct nvkm_gsp *gsp, void *argv, bool wait, u32 repc)
        }
 
        ret = r535_gsp_cmdq_push(gsp, rpc);
-       if (ret) {
-               mutex_unlock(&gsp->cmdq.mutex);
+       if (ret)
                return ERR_PTR(ret);
-       }
 
        if (wait) {
                msg = r535_gsp_msg_recv(gsp, fn, repc);