aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-sqlite.py
diff options
context:
space:
mode:
authorTony Asleson <[email protected]>2017-09-06 14:25:57 +0800
committerJens Axboe <[email protected]>2017-09-06 08:17:33 -0600
commit77fa100f27475d08a569b9d51c17722130f089e7 (patch)
treef4407063000718a982fe1f5438c4cb91e776cb9f /tools/perf/scripts/python/export-to-sqlite.py
parenta8394090a9129b40f9d90dcb7f4a49d60c727ca6 (diff)
bcache: Correct return value for sysfs attach errors
If you encounter any errors in bch_cached_dev_attach it will return a negative error code. The variable 'v' which stores the result is unsigned, thus user space sees a very large value returned for bytes written which can cause incorrect user space behavior. Utilize 1 signed variable to use throughout the function to preserve error return capability. Signed-off-by: Tony Asleson <[email protected]> Acked-by: Coly Li <[email protected]> Cc: [email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions