Skip to content

Commit b5fbf92

Browse files
Dan Carpentertdz
authored andcommitted
drm/client: Fix error code in drm_client_buffer_vmap_local()
This function accidentally returns zero/success on the failure path. It leads to locking issues and an uninitialized *map_copy in the caller. Fixes: b4b0193 ("drm/fbdev-generic: Fix locking with drm_client_buffer_vmap_local()") Signed-off-by: Dan Carpenter <dan.carpenter@linaro.org> Reviewed-by: Dmitry Osipenko <dmitry.osipenko@collabora.com> Reviewed-by: Thomas Zimmermann <tzimmermann@suse.de> Signed-off-by: Thomas Zimmermann <tzimmermann@suse.de> Link: https://patchwork.freedesktop.org/patch/msgid/89d13df3-747c-4c5d-b122-d081aef5110a@stanley.mountain
1 parent 75c3e8a commit b5fbf92

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpu/drm/drm_client.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -355,7 +355,7 @@ int drm_client_buffer_vmap_local(struct drm_client_buffer *buffer,
355355

356356
err_drm_gem_vmap_unlocked:
357357
drm_gem_unlock(gem);
358-
return 0;
358+
return ret;
359359
}
360360
EXPORT_SYMBOL(drm_client_buffer_vmap_local);
361361

0 commit comments

Comments
 (0)