Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
net/virtio-user: fix resource leak on probing failure
[ upstream commit edca47a ] When eth_virtio_dev_init is failed, the registered virtio user memory event cb is not released and the backend created tap device is not destroyed. It would cause some residual tap device existed in the host and creating a new vdev could be failed because the new virtio_user_dev could use the same address pointer and register memory event cb to the same address is not allowed. Fixes: ca8326a ("net/virtio_user: fix error management during init") Signed-off-by: Harold Huang <baymaxhuang@gmail.com> Reviewed-by: Chenbo Xia <chenbo.xia@intel.com>
- Loading branch information