aboutsummaryrefslogtreecommitdiff
path: root/drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
diff options
context:
space:
mode:
authorSrinivas Kandagatla <[email protected]>2015-12-14 09:42:38 +0000
committerGreg Kroah-Hartman <[email protected]>2016-02-07 23:09:13 -0800
commit2f9ba5b2f8420e0e5712080dafc773f7dd47c3df (patch)
tree3d63d41c671776a86dd02b4d7eca0011f158a091 /drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c
parent7326fffb712f09a315bc73cc1ee63843f59b8bd4 (diff)
nvmem: core: return error for non word aligned access
nvmem providers have restrictions on register strides, so return error when users attempt to read/write buffers with sizes which are less than word size. Without this patch the userspace would continue to try as it does not get any error from the nvmem core, resulting in a hang or endless loop in userspace. Reported-by: Ariel D'Alessandro <[email protected]> Signed-off-by: Srinivas Kandagatla <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_vm.c')
0 files changed, 0 insertions, 0 deletions