Commit 94739ddf authored by weiping zhang's avatar weiping zhang Committed by Greg Kroah-Hartman
Browse files

virtio: release virtio index when fail to device_register



commit e60ea67b upstream.

index can be reused by other virtio device.

Signed-off-by: default avatarweiping zhang <zhangweiping@didichuxing.com>
Reviewed-by: default avatarCornelia Huck <cohuck@redhat.com>
Signed-off-by: default avatarMichael S. Tsirkin <mst@redhat.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent d73fcef1
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment