commit | 5c60300d68da32ca77f7f978039dc72bfc78b06b | [log] [tgz] |
---|---|---|
author | Michael S. Tsirkin <mst@redhat.com> | Fri Apr 20 21:00:13 2018 +0300 |
committer | Michael S. Tsirkin <mst@redhat.com> | Wed Apr 25 20:41:29 2018 +0300 |
tree | f45f092ae920b4a1c8b990855cde54d7fa5ee1fc | |
parent | aa44ec867030a72e8aa127977e37dec551d8df19 [diff] |
virtio_console: reset on out of memory 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>