]> git.ipfire.org Git - thirdparty/kernel/stable.git/commit
drm/amdkfd: Fix permissions of hang_hws
authorFelix Kuehling <Felix.Kuehling@amd.com>
Fri, 20 Dec 2019 03:36:55 +0000 (22:36 -0500)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Mon, 24 Feb 2020 07:36:43 +0000 (08:36 +0100)
commit010cdc1be053680abdbac3a98d57c65a43ba42b6
tree5c88cb8532d11b8c7dd2d4ee74a0e64dce08f653
parent960671ac5065f5cec78d59cf2a5a62a5ca241821
drm/amdkfd: Fix permissions of hang_hws

[ Upstream commit 2bdac179e217a0c0b548a8c60524977586621b19 ]

Reading from /sys/kernel/debug/kfd/hang_hws would cause a kernel
oops because we didn't implement a read callback. Set the permission
to write-only to prevent that.

Signed-off-by: Felix Kuehling <Felix.Kuehling@amd.com>
Reviewed-by: shaoyunl <shaoyun.liu@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
drivers/gpu/drm/amd/amdkfd/kfd_debugfs.c