diff options
| author | Dmitry Osipenko <[email protected]> | 2023-11-11 22:42:36 +0000 |
|---|---|---|
| committer | Dmitry Osipenko <[email protected]> | 2023-11-15 01:42:16 +0000 |
| commit | 34b98a5f7a185c19715cc98c57d7e27b4785dfdf (patch) | |
| tree | e797dca4319fa9b7cc25f646454ffca50170057c /drivers/gpu/drm/i915/display/intel_tc.c | |
| parent | iosys-map: Rename locals used inside macros (diff) | |
| download | kernel-34b98a5f7a185c19715cc98c57d7e27b4785dfdf.tar.gz kernel-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 <[email protected]>
Reviewed-by: Gurchetan Singh <[email protected]>
Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'drivers/gpu/drm/i915/display/intel_tc.c')
0 files changed, 0 insertions, 0 deletions
