]> git.baikalelectronics.ru Git - kernel.git/commit
vhost-vdpa: fix vhost_vdpa_map() on error condition
authorSi-Wei Liu <si-wei.liu@oracle.com>
Sat, 3 Oct 2020 05:02:09 +0000 (01:02 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Sun, 4 Oct 2020 07:47:02 +0000 (03:47 -0400)
commit49c40d2e6709ed802970d05274fa7c2c7428a8d2
treefcfa8b329f2a0f59089a735083e8e1b86990fb4c
parentb94d660f9052484537dc1c713c9889a7d60d4e09
vhost-vdpa: fix vhost_vdpa_map() on error condition

vhost_vdpa_map() should remove the iotlb entry just added
if the corresponding mapping fails to set up properly.

Fixes: 747a8757e4dc ("vhost: introduce vDPA-based backend")
Signed-off-by: Si-Wei Liu <si-wei.liu@oracle.com>
Link: https://lore.kernel.org/r/1601701330-16837-2-git-send-email-si-wei.liu@oracle.com
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/vdpa.c