virtio-rng: Fix memory leaks in virtio_rng_device_realize
Get series with b4
b4 am [email protected]Versions newest first
- v1 Latest2 patches 3 repliesIn review
Patches in v1 No applies recorded yet
| # | Subject and files | Size | Replies | Applied |
|---|---|---|---|---|
| 1/2 | virtio-rng: Move error-checking forward to prevent memory leakhw/ | +10 | 0 replies | |
| 2/2 | virtio-rng: replace error_set calls with error_setghw/ | +4 | 0 replies |
Reviews trailers per patch
None of the 2 patches has a Reviewed-by or Acked-by of their own; the series has one for all of them.
| Patch | Markus Armbruster | Stefan Hajnoczi |
|---|---|---|
| Series | R-b | R-b |
| 1/2 | ||
| 2/2 |
Trailers given in replies are filled; those carried in the patches from earlier versions are outlined with dashes.
Cover letter [Qemu-devel] [PATCH 0/2] virtio-rng: Fix memory leaks in virtio_rng_device_realize
My previous commit, 713e8a10, did not address the fact that the error checking pathways do not attempt to call virtio_cleanup and thus can leak memory in hotplug scenarios.
This patchset shuffles around the error checking so it does not need to perform said cleanup, and changes the error functions from error_set to error_setg.
John Snow (2):
virtio-rng: Move error-checking forward to prevent memory leak
virtio-rng: replace error_set calls with error_setg
hw/virtio/virtio-rng.c | 25 ++++++++++++------------- 1 file changed, 12 insertions(+), 13 deletions(-)
Signature · 1 line
1.9.3