[PATCH V2] virtio-input: reset device and detach unused during remove

2015-08-05 Thread Jason Wang
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 --- Changes from V1: detach unused buffers for sts queue. --- drivers/virtio/virtio_input.c | 4 1 file changed, 4 insertions(+)

[PATCH V2] virtio-input: reset device and detach unused during remove

2015-08-05 Thread Jason Wang
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 jasow...@redhat.com --- Changes from V1: detach unused buffers for sts queue. --- drivers/virtio/virtio_input.c | 4 1 file changed,