Skip to content
Commit e60ea67b authored by weiping zhang's avatar weiping zhang Committed by Michael S. Tsirkin
Browse files

virtio: release virtio index when fail to device_register



index can be reused by other virtio device.

Cc: stable@vger.kernel.org
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>
parent 23f1b8d9
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment