]> git.karo-electronics.de Git - karo-tx-linux.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)
commitf862e60f8d52dae33c9f72afc20fab691a89f0bd
tree1682645af77b1128e72ad32ad4c39e64d8715508
parent8854a56f3e71703e0253697e4cc82b20acf732dc
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