Files
linux/drivers/gpu/drm/nouveau/nvkm/engine/gr
Li Huafei a2f599046c drm/nouveau/gr/gf100: Fix missing unlock in gf100_gr_chan_new()
When the call to gf100_grctx_generate() fails, unlock gr->fecs.mutex
before returning the error.

Fixes smatch warning:

drivers/gpu/drm/nouveau/nvkm/engine/gr/gf100.c:480 gf100_gr_chan_new() warn: inconsistent returns '&gr->fecs.mutex'.

Fixes: ca081fff6e ("drm/nouveau/gr/gf100-: generate golden context during first object alloc")
Signed-off-by: Li Huafei <lihuafei1@huawei.com>
Reviewed-by: Lyude Paul <lyude@redhat.com>
Signed-off-by: Lyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241026173844.2392679-1-lihuafei1@huawei.com
2024-10-29 15:48:56 -04:00
..
2023-10-31 15:08:17 +10:00
2023-10-31 15:08:17 +10:00
2023-10-31 15:08:17 +10:00
2022-11-09 10:45:21 +10:00
2022-11-09 10:45:21 +10:00
2023-10-31 15:08:17 +10:00
2023-11-03 12:57:14 +10:00
2023-10-31 15:08:17 +10:00