summaryrefslogtreecommitdiff
path: root/target-sparc
diff options
context:
space:
mode:
authorJohn Snow <jsnow@redhat.com>2014-07-29 19:28:57 -0400
committerAmit Shah <amit.shah@redhat.com>2014-08-04 14:49:53 +0530
commit1efd6e072cb13b7a7050acc9c673eb4ff25ddfc9 (patch)
tree20ed7faa2960f542d62e27bba0e83318ab541420 /target-sparc
parentc79805802ba0463713c253307d99ebef56436b8c (diff)
downloadqemu-1efd6e072cb13b7a7050acc9c673eb4ff25ddfc9.tar.gz
virtio-rng: Move error-checking forward to prevent memory leak
This patch pushes the error-checking forward and the virtio initialization backward in the device realization function in order to prevent memory leaks for hot plug scenarios. Signed-off-by: John Snow <jsnow@redhat.com> Reviewed-by: Markus Armbruster <armbru@redhat.com> Reviewed-by: Stefan Hajnoczi <stefanha@redhat.com> Signed-off-by: Amit Shah <amit.shah@redhat.com>
Diffstat (limited to 'target-sparc')
0 files changed, 0 insertions, 0 deletions