vhost-vdpa: Call ida_simple_remove() when failed
authorBo Liu <liubo03@inspur.com>
Fri, 5 Aug 2022 09:12:54 +0000 (05:12 -0400)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 11 Aug 2022 08:26:09 +0000 (04:26 -0400)
commitebe6a354fa7e0a7d5b581da31ad031b19d8693f9
tree7c43fb202034a64a3fd3e1a511217ae2ee133510
parent79e0034cb3485e64622ec0aabf8a6f4f8143f47b
vhost-vdpa: Call ida_simple_remove() when failed

In function vhost_vdpa_probe(), when code execution fails, we should
call ida_simple_remove() to free ida.

Signed-off-by: Bo Liu <liubo03@inspur.com>
Message-Id: <20220805091254.20026-1-liubo03@inspur.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/vhost/vdpa.c