aboutsummaryrefslogtreecommitdiffstats
path: root/fs/jbd2/commit.c
diff options
context:
space:
mode:
authorSuzuki K Poulose <[email protected]>2016-05-06 14:35:50 +0000
committerGreg Kroah-Hartman <[email protected]>2016-06-16 07:13:06 +0000
commit5014e904681ddbdf663bb20f134eb053ddccb181 (patch)
treeee0ae74d3ec6d2a003f101a1ea6df69b57f25ff1 /fs/jbd2/commit.c
parentcoresight: Fix erroneous memset in tmc_read_unprepare_etr (diff)
downloadkernel-5014e904681ddbdf663bb20f134eb053ddccb181.tar.gz
kernel-5014e904681ddbdf663bb20f134eb053ddccb181.zip
coresight: Handle build path error
Enabling a component via sysfs (echo 1 > enable_source), would trigger building a path from the enabled sources to the sink. If there is an error in the process (e.g, sink not enabled or the device (CPU corresponding to ETM) is not online), we never report failure, except for leaving a message in the dmesg. Do proper error checking for the build path and return the error. Before: $ echo 0 > /sys/devices/system/cpu/cpu2/online $ echo 1 > /sys/devices/cs_etm/cpu2/enable_source $ echo $? 0 After: $ echo 0 > /sys/devices/system/cpu/cpu2/online $ echo 1 > /sys/devices/cs_etm/cpu2/enable_source -bash: echo: write error: No such device or address Signed-off-by: Suzuki K Poulose <[email protected]> Acked-by: Mathieu Poirier <[email protected]> Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'fs/jbd2/commit.c')
0 files changed, 0 insertions, 0 deletions