summaryrefslogtreecommitdiff
path: root/tools/perf/scripts/python/export-to-postgresql.py
diff options
context:
space:
mode:
authorColy Li <colyli@suse.de>2020-01-23 20:01:29 +0300
committerJens Axboe <axboe@kernel.dk>2020-01-23 21:40:01 +0300
commit29cda393bcaad160c4bf3676ddd99855adafc72f (patch)
tree157f8dc5919fdfd60a86e74fc403d50d19826c38 /tools/perf/scripts/python/export-to-postgresql.py
parent50246693f81fe887f4db78bf7089051d7f1894cc (diff)
downloadlinux-29cda393bcaad160c4bf3676ddd99855adafc72f.tar.xz
bcache: properly initialize 'path' and 'err' in register_bcache()
Patch "bcache: rework error unwinding in register_bcache" from Christoph Hellwig changes the local variables 'path' and 'err' in undefined initial state. If the code in register_bcache() jumps to label 'out:' or 'out_module_put:' by goto, these two variables might be reference with undefined value by the following line, out_module_put: module_put(THIS_MODULE); out: pr_info("error %s: %s", path, err); return ret; Therefore this patch initializes these two local variables properly in register_bcache() to avoid such issue. Signed-off-by: Coly Li <colyli@suse.de> Signed-off-by: Jens Axboe <axboe@kernel.dk>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions