Skip to content

Commit 60268b0

Browse files
nchatradgroeck
authored andcommitted
hwmon: (amd_energy) modify the visibility of the counters
This patch limits the visibility to owner and groups only for the energy counters exposed through the hwmon based amd_energy driver. Cc: stable@vger.kernel.org Reviewed-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Naveen Krishna Chatradhi <nchatrad@amd.com> Link: https://lore.kernel.org/r/20201112172159.8781-1-nchatrad@amd.com Signed-off-by: Guenter Roeck <linux@roeck-us.net>
1 parent 4d64bb4 commit 60268b0

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/hwmon/amd_energy.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -171,7 +171,7 @@ static umode_t amd_energy_is_visible(const void *_data,
171171
enum hwmon_sensor_types type,
172172
u32 attr, int channel)
173173
{
174-
return 0444;
174+
return 0440;
175175
}
176176

177177
static int energy_accumulator(void *p)

0 commit comments

Comments
 (0)