diff options
| author | Michael S. Tsirkin <mst@redhat.com> | 2018-04-20 21:00:13 +0300 |
|---|---|---|
| committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2019-11-28 18:26:21 +0100 |
| commit | 4cad8c2d8f8b50638dc5da357b5f2e42b5860f19 (patch) | |
| tree | c27fc280429b2829a6291cb1e091ccab9390942d /drivers/mtd/lpddr/lpddr_cmds.c | |
| parent | 7eb42039eb295884161757eb9829dc1c3a043436 (diff) | |
virtio_console: reset on out of memory
[ Upstream commit 5c60300d68da32ca77f7f978039dc72bfc78b06b ]
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: Sasha Levin <sashal@kernel.org>
Diffstat (limited to 'drivers/mtd/lpddr/lpddr_cmds.c')
0 files changed, 0 insertions, 0 deletions
