When bdev_rados_cluster_init encounters an error, it shuts down the cluster before returning, but since the pointer is still set, bdev_rbd_free will attempt to shut it down again, which causes a crash. Therefore, set the pointer to NULL after the first shutdown to indicate that the cluster object does not exist anymore. Change-Id: Ie403471e8aba881cb6380e74bd1a4ca8d67cbc68 Signed-off-by: Lukas Stockner <lstockner@genesiscloud.com> Reviewed-on: https://review.spdk.io/gerrit/c/spdk/spdk/+/16203 Community-CI: Mellanox Build Bot Tested-by: SPDK CI Jenkins <sys_sgci@intel.com> Reviewed-by: Tomasz Zawadzki <tomasz.zawadzki@intel.com> Reviewed-by: Shuhei Matsumoto <smatsumoto@nvidia.com> |
||
---|---|---|
.. | ||
bdev_rbd_rpc.c | ||
bdev_rbd.c | ||
bdev_rbd.h | ||
Makefile |