diff options
author | weiping zhang <zhangweiping@didichuxing.com> | 2017-12-06 21:59:16 +0800 |
---|---|---|
committer | Michael S. Tsirkin <mst@redhat.com> | 2017-12-07 18:30:50 +0200 |
commit | 7eb781b1bbb7136fe78fb8c28c1c223c61fa32b5 (patch) | |
tree | 38ef83887dd988fe7ea05a07d0f3ec1ac8461c26 /tools/perf/scripts/python/export-to-sqlite.py | |
parent | d9e427f6ab8142d6868eb719e6a7851aafea56b6 (diff) |
virtio_mmio: add cleanup for virtio_mmio_probe
As mentioned at drivers/base/core.c:
/*
* NOTE: _Never_ directly free @dev after calling this function, even
* if it returned an error! Always use put_device() to give up the
* reference initialized in this function instead.
*/
so we don't free vm_dev until vm_dev.dev.release be called.
Signed-off-by: weiping zhang <zhangweiping@didichuxing.com>
Signed-off-by: Michael S. Tsirkin <mst@redhat.com>
Reviewed-by: Cornelia Huck <cohuck@redhat.com>
Diffstat (limited to 'tools/perf/scripts/python/export-to-sqlite.py')
0 files changed, 0 insertions, 0 deletions