An error occurred while fetching folder content.
Jack Wang
authored
In error case, we do not free the memory for blk_symlink_name. Do it by free the memory in error case, and set to NULL afterwards. Also fix the condition in rnbd_clt_remove_dev_symlink. Fixes: 64e8a6ec ("block/rnbd-clt: Dynamically alloc buffer for pathname & blk_symlink_name") Signed-off-by:Jack Wang <jinpu.wang@cloud.ionos.com> Reviewed-by:
Md Haris Iqbal <haris.iqbal@cloud.ionos.com> Signed-off-by:
Jens Axboe <axboe@kernel.dk>
Name | Last commit | Last update |
---|