Commit 6143a3c
virtio_console: reset on out of memory
commit 5c60300 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.
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Signed-off-by: Ben Hutchings <ben@decadent.org.uk>1 parent da1ced7 commit 6143a3c
1 file changed
Lines changed: 10 additions & 7 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
2073 | 2073 | | |
2074 | 2074 | | |
2075 | 2075 | | |
| 2076 | + | |
2076 | 2077 | | |
2077 | 2078 | | |
2078 | 2079 | | |
| |||
2088 | 2089 | | |
2089 | 2090 | | |
2090 | 2091 | | |
2091 | | - | |
2092 | | - | |
| 2092 | + | |
| 2093 | + | |
| 2094 | + | |
| 2095 | + | |
| 2096 | + | |
| 2097 | + | |
| 2098 | + | |
| 2099 | + | |
| 2100 | + | |
2093 | 2101 | | |
2094 | 2102 | | |
2095 | 2103 | | |
| |||
2120 | 2128 | | |
2121 | 2129 | | |
2122 | 2130 | | |
2123 | | - | |
2124 | | - | |
2125 | | - | |
2126 | | - | |
2127 | | - | |
2128 | 2131 | | |
2129 | 2132 | | |
2130 | 2133 | | |
| |||
0 commit comments