diff options
author | Michael S. Tsirkin <mst@redhat.com> | 2018-04-20 21:00:13 +0300 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2018-05-01 12:58:12 -0700 |
commit | 998d43ce034b98466e0aa1b8d56b6d524c7d0d4e (patch) | |
tree | 438a23337e4bc3fae482ef8692bd93cbcdb8f99c /drivers/gpu/drm/virtio/virtgpu_vq.c | |
parent | e9287108acce9b3611bc45a76801fbe242347e60 (diff) | |
download | linux-stable-998d43ce034b98466e0aa1b8d56b6d524c7d0d4e.tar.gz linux-stable-998d43ce034b98466e0aa1b8d56b6d524c7d0d4e.tar.bz2 linux-stable-998d43ce034b98466e0aa1b8d56b6d524c7d0d4e.zip |
virtio_console: reset on out of memory
commit 5c60300d68da32ca77f7f978039dc72bfc78b06b upstream.
When out of memory and we can't add ctrl vq buffers,
probe fails. Unfortunately the error handling is
out of spec: it calls del_vqs without bothering
to reset the device first.
To fix, call the full cleanup function in this case.
Cc: stable@vger.kernel.org
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/gpu/drm/virtio/virtgpu_vq.c')
0 files changed, 0 insertions, 0 deletions