diff options
| author | Swapnil Sapkal <[email protected]> | 2025-04-30 17:14:33 +0000 |
|---|---|---|
| committer | Shuah Khan <[email protected]> | 2025-05-09 18:43:31 +0000 |
| commit | 8ffe772076bbb6828e28705bda93ac37c8d7294c (patch) | |
| tree | dc3157d9e2f9138303fe26089598be879b7d20ee /drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c | |
| parent | selftests/ftrace: Convert poll to a gen_file (diff) | |
| download | kernel-8ffe772076bbb6828e28705bda93ac37c8d7294c.tar.gz kernel-8ffe772076bbb6828e28705bda93ac37c8d7294c.zip | |
selftests/cpufreq: Fix cpufreq basic read and update testcases
In cpufreq basic selftests, one of the testcases is to read all cpufreq
sysfs files and print the values. This testcase assumes all the cpufreq
sysfs files have read permissions. However certain cpufreq sysfs files
(eg. stats/reset) are write only files and this testcase errors out
when it is not able to read the file.
Similarily, there is one more testcase which reads the cpufreq sysfs
file data and write it back to same file. This testcase also errors out
for sysfs files without read permission.
Fix these testcases by adding proper read permission checks.
Link: https://lore.kernel.org/r/[email protected]
Reported-by: Narasimhan V <[email protected]>
Signed-off-by: Swapnil Sapkal <[email protected]>
Signed-off-by: Shuah Khan <[email protected]>
Diffstat (limited to 'drivers/gpu/drm/amd/amdgpu/amdgpu_atomfirmware.c')
0 files changed, 0 insertions, 0 deletions
