Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux
1
fork

Configure Feed

Select the types of activity you want to include in your feed.

Merge tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost

Pull virtio fix from Michael Tsirkin:
"A last minute fix for the new virtio input driver. It seems pretty
obvious, and the problem it's fixing would be quite hard to debug"

* tag 'for_linus' of git://git.kernel.org/pub/scm/linux/kernel/git/mst/vhost:
virtio-input: reset device and detach unused during remove

+4
+4
drivers/virtio/virtio_input.c
··· 313 313 static void virtinput_remove(struct virtio_device *vdev) 314 314 { 315 315 struct virtio_input *vi = vdev->priv; 316 + void *buf; 316 317 unsigned long flags; 317 318 318 319 spin_lock_irqsave(&vi->lock, flags); ··· 321 320 spin_unlock_irqrestore(&vi->lock, flags); 322 321 323 322 input_unregister_device(vi->idev); 323 + vdev->config->reset(vdev); 324 + while ((buf = virtqueue_detach_unused_buf(vi->sts)) != NULL) 325 + kfree(buf); 324 326 vdev->config->del_vqs(vdev); 325 327 kfree(vi); 326 328 }