]> 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:38:23 +0000 (08:38 +0100)
commit3845a7caa20a4075bf6088b3b275971f94fad1f9
tree92f80a0cac62ef541d4f14930806055da9bc8f05
parentdd99c14ecd91f47cfc0b3188e4f2e76b01cc4443
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