linux/drivers/vdpa/vdpa_sim
Shawn.Shao d121df789b vdpa_sim_blk: Fix the potential leak of mgmt_dev
If the shared_buffer allocation fails, need to unregister mgmt_dev first.

Cc: stable@vger.kernel.org
Fixes: abebb16254 ("vdpa_sim_blk: support shared backend")
Signed-off-by: Shawn.Shao <shawn.shao@jaguarmicro.com>
Acked-by: Jason Wang <jasowang@redhat.com>
Message-Id: <20230821060333.1155-1-shawn.shao@jaguarmicro.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
2023-10-18 11:28:47 -04:00
..
Makefile vdpa: add vdpa simulator for block device 2021-05-03 04:55:53 -04:00
vdpa_sim_blk.c vdpa_sim_blk: Fix the potential leak of mgmt_dev 2023-10-18 11:28:47 -04:00
vdpa_sim_net.c vdpa_sim: move buffer allocation in the devices 2023-04-21 03:02:35 -04:00
vdpa_sim.c vdpa_sim: offer VHOST_BACKEND_F_ENABLE_AFTER_DRIVER_OK 2023-09-03 18:10:22 -04:00
vdpa_sim.h vdpa_sim: move buffer allocation in the devices 2023-04-21 03:02:35 -04:00