]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commited006e8afe1f4b09b4a0fe457f667f31b37ef633
tree7c43fb202034a64a3fd3e1a511217ae2ee133510
parentbec11188f9e89becb0f18b3f97e6ff6d45a98d72
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