aboutsummaryrefslogtreecommitdiffstats
path: root/net/unix/af_unix.c
diff options
context:
space:
mode:
authorSrinivas Pandruvada <[email protected]>2013-12-04 19:12:59 +0000
committerRafael J. Wysocki <[email protected]>2013-12-05 01:05:48 +0000
commit95677a9a3847de4f37e0f463aeb94aa8d5cccc50 (patch)
treee26ce006b6ad9735d7b85290a567713f8fd10f7e /net/unix/af_unix.c
parentPowerCap: Fix build error with option -Werror=format-security (diff)
downloadkernel-95677a9a3847de4f37e0f463aeb94aa8d5cccc50.tar.gz
kernel-95677a9a3847de4f37e0f463aeb94aa8d5cccc50.zip
PowerCap: Fix mode for energy counter
As per the documentation of powercap sysfs, energy_uj field is read only, if it can't be reset. Currently it always allows write but will fail, if there is no reset callback. Changing mode field, to read only if there is no reset callback. Signed-off-by: Srinivas Pandruvada <[email protected]> Reported-by: Dirk Brandewie <[email protected]> Signed-off-by: Rafael J. Wysocki <[email protected]>
Diffstat (limited to 'net/unix/af_unix.c')
0 files changed, 0 insertions, 0 deletions