mirror of
git://nv-tegra.nvidia.com/linux-nvgpu.git
synced 2025-12-24 02:22:34 +03:00
gpu: nvgpu: Correct permissions for cbc_ctrl debug node
The cbc_ctrl debugfs node is created with both read and write permissions, however, this node only supports being written and not read. Fix this by removing read permissions for this debugfs node. Bug 3402817 Change-Id: I16ffba8285144389758be283121c3096745aae73 Signed-off-by: Jon Hunter <jonathanh@nvidia.com> Reviewed-on: https://git-master.nvidia.com/r/c/linux-nvgpu/+/2630027 Tested-by: mobile promotions <svcmobile_promotions@nvidia.com> Reviewed-by: Martin Radev <mradev@nvidia.com> Reviewed-by: Alex Waterman <alexw@nvidia.com> Reviewed-by: mobile promotions <svcmobile_promotions@nvidia.com> GVS: Gerrit_Virtual_Submit
This commit is contained in:
committed by
mobile promotions
parent
8c53b54649
commit
02ab4c3880
@@ -477,7 +477,7 @@ int gr_gk20a_debugfs_init(struct gk20a *g)
|
||||
if (!d)
|
||||
return -ENOMEM;
|
||||
/* Using debugfs_create_file_unsafe to allow mmap */
|
||||
d = debugfs_create_file_unsafe("cbc_ctrl", S_IRUSR | S_IWUSR,
|
||||
d = debugfs_create_file_unsafe("cbc_ctrl", S_IWUSR,
|
||||
l->debugfs, g, &cbc_ctrl_debug_fops);
|
||||
if (!d)
|
||||
return -ENOMEM;
|
||||
|
||||
Reference in New Issue
Block a user