summaryrefslogtreecommitdiffstats
path: root/Documentation/gpu
diff options
context:
space:
mode:
authorDmitry Osipenko <dmitry.osipenko@collabora.com>2023-11-12 01:42:36 +0300
committerDmitry Osipenko <dmitry.osipenko@collabora.com>2023-11-15 04:42:16 +0300
commit34b98a5f7a185c19715cc98c57d7e27b4785dfdf (patch)
treee797dca4319fa9b7cc25f646454ffca50170057c /Documentation/gpu
parent2e122362d25e1b977aa5c5c88c03956be4228e02 (diff)
downloadlinux-stable-34b98a5f7a185c19715cc98c57d7e27b4785dfdf.tar.gz
linux-stable-34b98a5f7a185c19715cc98c57d7e27b4785dfdf.tar.bz2
linux-stable-34b98a5f7a185c19715cc98c57d7e27b4785dfdf.zip
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 <dmitry.osipenko@collabora.com> Reviewed-by: Gurchetan Singh <gurchetansingh@chromium.org> Link: https://patchwork.freedesktop.org/patch/msgid/20231111224236.890431-1-dmitry.osipenko@collabora.com
Diffstat (limited to 'Documentation/gpu')
0 files changed, 0 insertions, 0 deletions