]> git.baikalelectronics.ru Git - kernel.git/commit
drm/amdgpu: just disallow reading untouched registers
authorChristian König <christian.koenig@amd.com>
Fri, 24 Mar 2017 13:32:50 +0000 (14:32 +0100)
committerAlex Deucher <alexander.deucher@amd.com>
Thu, 30 Mar 2017 18:44:00 +0000 (14:44 -0400)
commitd462d1e2505639eb5c94892e2cd60fcf64079abd
treea5db8b3bc50e930689008a35d57f34c0209db063
parent15eb6afbd55e766485354dc0d42fe6c4a2b589f1
drm/amdgpu: just disallow reading untouched registers

Not sure what the original intention was here, but returning a random piece of
kernel memory to userspace because we didn't set the value at all is clearly
not a good idea.

This patch disallows reading the register and returns
a proper error code instead.

Signed-off-by: Christian König <christian.koenig@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
Acked-by: Tom St Denis <tom.stdenis@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/amd/amdgpu/vi.c