]> Git Repo - linux.git/commit
drm/virtio: Fix return value for VIRTGPU_CONTEXT_PARAM_DEBUG_NAME
authorDmitry Osipenko <[email protected]>
Sat, 11 Nov 2023 22:42:36 +0000 (01:42 +0300)
committerDmitry Osipenko <[email protected]>
Wed, 15 Nov 2023 01:42:16 +0000 (04:42 +0300)
commit34b98a5f7a185c19715cc98c57d7e27b4785dfdf
treee797dca4319fa9b7cc25f646454ffca50170057c
parent2e122362d25e1b977aa5c5c88c03956be4228e02
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: 7add80126bce ("drm/uapi: add explicit virtgpu context debug name")
Signed-off-by: Dmitry Osipenko <[email protected]>
Reviewed-by: Gurchetan Singh <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
drivers/gpu/drm/virtio/virtgpu_ioctl.c
This page took 0.054577 seconds and 4 git commands to generate.