]> git.baikalelectronics.ru Git - kernel.git/commit
virtio_console: reset on out of memory
authorMichael S. Tsirkin <mst@redhat.com>
Fri, 20 Apr 2018 18:00:13 +0000 (21:00 +0300)
committerMichael S. Tsirkin <mst@redhat.com>
Wed, 25 Apr 2018 17:41:29 +0000 (20:41 +0300)
commit005abd543a0bcbf9d0759dd41cb8141431f6f0e0
treef45f092ae920b4a1c8b990855cde54d7fa5ee1fc
parent5a39e1358e12a1d4ef2d8bf602693987e653c5c1
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>
drivers/char/virtio_console.c