]> git.baikalelectronics.ru Git - kernel.git/commit
drm/virtio: fix lock context imbalance
authorMichael S. Tsirkin <mst@redhat.com>
Mon, 5 Dec 2016 20:36:56 +0000 (22:36 +0200)
committerMichael S. Tsirkin <mst@redhat.com>
Thu, 15 Dec 2016 04:59:16 +0000 (06:59 +0200)
commitfc9527e387e91ec59d4bdfb95a2e00eff161da15
tree1682645af77b1128e72ad32ad4c39e64d8715508
parent75c7c0e0ca8b30c71cfa1b6ce8fa5fee81827614
drm/virtio: fix lock context imbalance

When virtio_gpu_free_vbufs exits due to list empty, it does not
drop the free_vbufs lock that it took.
list empty is not expected to happen anyway, but it can't hurt to fix
this and drop the lock.

Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
drivers/gpu/drm/virtio/virtgpu_vq.c