staging: vboxvideo: unlock on error in vbox_cursor_atomic_update()
Subsystems (2)
PATCH 1/1 staging: vboxvideo: unlock on error in vbox_cursor_atomic_update()
We need to unlock before returning on this error path.
Fixes 35f3288c453e ("staging: vboxvideo: Atomic phase 1: convert cursor to universal plane")
Signed-off-by Dan Carpenter <[email protected]>
drivers/staging/vboxvideo/vbox_mode.c +1 -0
@@ -424,6 +424,7 @@ static void vbox_cursor_atomic_update(struct drm_plane *plane,/* pinning is done in prepare/cleanup framebuffer */ src =vbox_bo_kmap (bo);if (IS_ERR (src)) { +mutex_unlock (&vbox->hw_mutex);DRM_WARN ("Could not kmap cursor bo, skipping update\n" );return ; }
Hi,
Quoted 4 lines · Dan Carpenter
We need to unlock before returning on this error path.
Fixes 35f3288c453e ("staging: vboxvideo: Atomic phase 1: convert cursor to universal plane")Signed-off-by Dan Carpenter <[email protected]>
Thanks, the kbuild test robot had already notified me about this but I did not get around to fixing it yet.
Fix looks good to me:
Reviewed-by Hans de Goede <[email protected]>
Regards,
Hans
Quoted 14 lines
drivers/staging/vboxvideo/vbox_mode.c +1
-0@@ -424,6 +424,7 @@ static void vbox_cursor_atomic_update(struct drm_plane *plane,/* pinning is done in prepare/cleanup framebuffer */ src =vbox_bo_kmap (bo);if (IS_ERR (src)) { +mutex_unlock (&vbox->hw_mutex);DRM_WARN ("Could not kmap cursor bo, skipping update\n" );return ; }