Coly Li 777967e7e9 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>
2023-11-20 09:17:51 -07:00
..
2023-02-14 14:23:07 -05:00
2023-02-14 14:23:07 -05:00
2023-11-01 12:30:07 -10:00
2023-02-14 14:23:07 -05:00
2023-02-14 14:23:06 -05:00
2023-08-02 09:13:09 -06:00
2022-08-02 14:38:59 -07:00
2023-07-27 00:13:30 -07:00
2023-10-10 18:49:51 -07:00
2023-11-01 20:51:41 -10:00
2023-11-01 12:30:07 -10:00