search for: parent_err

Displaying 2 results from an estimated 2 matches for "parent_err".

Did you mean: parent_edu
2023 Aug 21
0
[PATCH] vdpa_sim_blk: Fix the potential leak of mgmt_dev
...k.c > +++ b/drivers/vdpa/vdpa_sim/vdpa_sim_blk.c > @@ -499,12 +499,13 @@ static int __init vdpasim_blk_init(void) > GFP_KERNEL); > if (!shared_buffer) { > ret = -ENOMEM; > - goto parent_err; > + goto mgmt_dev_err; > } > } > > return 0; > - > +mgmt_dev_err: > + vdpa_mgmtdev_unregister(&mgmt_dev); > parent_err: > device_unregister(&vdpasim_blk_mgmtdev); > return ret; &gt...
2023 Apr 07
2
[PATCH 0/2] vdpa_sim_blk: support shared backend
This series is mainly for testing live migration between 2 vdpa_sim_blk devices. The first patch is preparation and moves the buffer allocation into devices, the second patch adds the `shared_buffer_mutex` parameter to vdpa_sim_blk to use the same ramdisk for all devices. Tested with QEMU v8.0.0-rc2 in this way: modprobe vhost_vdpa modprobe vdpa_sim_blk shared_backend=true vdpa dev add mgmtdev