Skip to content
Commit 27548088 authored by Wu Bo's avatar Wu Bo Committed by Jens Axboe
Browse files

drbd: Fix double free problem in drbd_create_device



In drbd_create_device(), the 'out_no_io_page' lable has called
blk_cleanup_disk() when return failed.

So remove the 'out_cleanup_disk' lable to avoid double free the
disk pointer.

Fixes: e92ab4ed ("drbd: add error handling support for add_disk()")
Signed-off-by: default avatarWu Bo <wubo40@huawei.com>
Reviewed-by: default avatarChristoph Hellwig <hch@lst.de>
Link: https://lore.kernel.org/r/1636013229-26309-1-git-send-email-wubo40@huawei.com


Signed-off-by: default avatarJens Axboe <axboe@kernel.dk>
parent 3aefb5ee
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment