diff options
author | 2023-11-20 13:24:55 +0800 | |
---|---|---|
committer | 2023-11-20 09:17:51 -0700 | |
commit | 777967e7e9f6f5f3e153abffb562bffaf4430d26 (patch) | |
tree | 5985514cd2600afd675da0d53b3f3a901e82420a /tools/perf/scripts/python/export-to-postgresql.py | |
parent | bcache: avoid oversize memory allocation by small stripe_size (diff) | |
download | linux-rng-777967e7e9f6f5f3e153abffb562bffaf4430d26.tar.xz linux-rng-777967e7e9f6f5f3e153abffb562bffaf4430d26.zip |
bcache: check return value from btree_node_alloc_replacement()
In btree_gc_rewrite_node(), pointer 'n' is not checked after it returns
from btree_gc_rewrite_node(). There is potential possibility that 'n' is
a non NULL ERR_PTR(), referencing such error code is not permitted in
following code. Therefore a return value checking is necessary after 'n'
is back from btree_node_alloc_replacement().
Signed-off-by: Coly Li <colyli@suse.de>
Reported-by: Dan Carpenter <dan.carpenter@linaro.org>
Cc: <stable@vger.kernel.org>
Link: https://lore.kernel.org/r/20231120052503.6122-3-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