Skip to content
Snippets Groups Projects
Commit 34b98a5f authored by Dmitry Osipenko's avatar Dmitry Osipenko
Browse files

drm/virtio: Fix return value for VIRTGPU_CONTEXT_PARAM_DEBUG_NAME


The strncpy_from_user() returns number of copied bytes and not zero on
success. The non-zero return value of ioctl is treated as error. Return
zero on success instead of the number of copied bytes.

Fixes: 7add8012 ("drm/uapi: add explicit virtgpu context debug name")
Signed-off-by: default avatarDmitry Osipenko <dmitry.osipenko@collabora.com>
Reviewed-by: default avatarGurchetan Singh <gurchetansingh@chromium.org>
Link: https://patchwork.freedesktop.org/patch/msgid/20231111224236.890431-1-dmitry.osipenko@collabora.com
parent 2e122362
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