]> git.proxmox.com Git - mirror_ubuntu-kernels.git/commit
virtio: release virtio index when fail to device_register
authorweiping zhang <zwp10758@gmail.com>
Wed, 29 Nov 2017 01:23:01 +0000 (09:23 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Fri, 1 Dec 2017 14:55:32 +0000 (16:55 +0200)
commite60ea67bb60459b95a50a156296041a13e0e380e
tree3a84c30892f84e70e9ea5c7c24e1ee55ddb8ca0c
parent23f1b8d938c861ee0bbb786162f7ce0685f722ec
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: weiping zhang <zhangweiping@didichuxing.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio.c