aboutsummaryrefslogtreecommitdiff
path: root/lib/flex_array.c
diff options
context:
space:
mode:
authorClemens Ladisch <clemens@ladisch.de>2011-02-16 08:02:38 -0500
committerGreg Kroah-Hartman <gregkh@suse.de>2011-02-24 14:54:36 -0800
commit53b9575ce4ac028c83c4b3ed944e8941cf984257 (patch)
tree55a94045ed5e3ea69a262b29fe6ab2de0b303ca4 /lib/flex_array.c
parent12e9bb0276725726bb316e706c48d856f9664f32 (diff)
hwmon: (jc42) do not allow writing to locked registers
commit 2c6315da6a1657a49e03970a4084dc3d1958ad70 upstream. On systems where the temperature sensor is actually used, the BIOS is likely to have locked the alarm registers. In that case, all writes through the corresponding sysfs files would be silently ignored. To prevent this, detect the locks and make the affected sysfs files read-only. Signed-off-by: Clemens Ladisch <clemens@ladisch.de> Signed-off-by: Guenter Roeck <guenter.roeck@ericsson.com> Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'lib/flex_array.c')
0 files changed, 0 insertions, 0 deletions