aboutsummaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/check-perf-trace.py
diff options
context:
space:
mode:
authorChao Yu <[email protected]>2021-10-20 22:38:07 +0800
committerJens Axboe <[email protected]>2021-10-20 08:40:54 -0600
commitd55f7cb2e5c053010d2b527494da9bbb722a78ba (patch)
tree9a5e6cd38a8fec1bea2acc91c16845849aed06a6 /tools/perf/scripts/python/check-perf-trace.py
parent0a2b3e363566c4cc8792d37c5e73b9d9295e075c (diff)
bcache: fix error info in register_bcache()
In register_bcache(), there are several cases we didn't set correct error info (return value and/or error message): - if kzalloc() fails, it needs to return ENOMEM and print "cannot allocate memory"; - if register_cache() fails, it's better to propagate its return value rather than using default EINVAL. Signed-off-by: Chao Yu <[email protected]> Reviewed-by: Hannes Reinecke <[email protected]> Signed-off-by: Coly Li <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Jens Axboe <[email protected]>
Diffstat (limited to 'tools/perf/scripts/python/check-perf-trace.py')
0 files changed, 0 insertions, 0 deletions