]> git.baikalelectronics.ru Git - kernel.git/commit
virtio-input: reset device and detach unused during remove
authorJason Wang <jasowang@redhat.com>
Thu, 6 Aug 2015 05:54:21 +0000 (13:54 +0800)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 6 Aug 2015 07:40:35 +0000 (10:40 +0300)
commit92a57a31366e00091414c5d1843c88721c869ccb
tree7a2f88d1e80de2f14e6cf43a12ecf2073dc1f2ca
parent5cac980cd1f596f7f7cf31bc217548b3f5fda8d7
virtio-input: reset device and detach unused during remove

Spec requires a device reset during cleanup, so do it and avoid warn
in virtio core. And detach unused buffers to avoid memory leak.

Signed-off-by: Jason Wang <jasowang@redhat.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/virtio/virtio_input.c