Skip to content
Snippets Groups Projects
Commit a2f59904 authored by Li Huafei's avatar Li Huafei Committed by Lyude Paul
Browse files

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: ca081fff ("drm/nouveau/gr/gf100-: generate golden context during first object alloc")
Signed-off-by: default avatarLi Huafei <lihuafei1@huawei.com>
Reviewed-by: Lyude Paul's avatarLyude Paul <lyude@redhat.com>
Signed-off-by: Lyude Paul's avatarLyude Paul <lyude@redhat.com>
Link: https://patchwork.freedesktop.org/patch/msgid/20241026173844.2392679-1-lihuafei1@huawei.com
parent 973db93d
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment