aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c
diff options
context:
space:
mode:
authorEryk Brol <[email protected]>2020-08-27 20:48:38 +0000
committerAlex Deucher <[email protected]>2020-09-15 21:52:42 +0000
commit918698d5c2b50433714d2042f55b55b090faa167 (patch)
tree0e04d852ec4b42f944169112c3bb657b4685de71 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c
parentdrm/amd/display: Update idle optimization handling (diff)
downloadkernel-918698d5c2b50433714d2042f55b55b090faa167.tar.gz
kernel-918698d5c2b50433714d2042f55b55b090faa167.zip
drm/amd/display: Return the number of bytes parsed than allocated
[why & how] Previously we were returning the number of bytes allocated for a write buffer from debugfs and when manually used it wouldn't rise any errors, but it wouldn't match the size of the parameters passed from userspace. In successful case return the size passed by usermode otherwise the error code is returned. That simplifies the parser helper and removes a potential error of returning mismatched input size. Signed-off-by: Eryk Brol <[email protected]> Signed-off-by: Mikita Lipski <[email protected]> Acked-by: Aurabindo Pillai <[email protected]> Signed-off-by: Alex Deucher <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm_cpu.c')
0 files changed, 0 insertions, 0 deletions