[libvirt] [PATCH v2 1/5] uml: Fix umlProcessAutoDestroyDom dom processing

Daniel P. Berrangé berrange at redhat.com
Thu Apr 19 13:47:15 UTC 2018


On Mon, Apr 02, 2018 at 09:06:12AM -0400, John Ferlan wrote:
> There's no need to check if @dom exists before trying to
> call virDomainObjListRemove since it must exist due to
> prior checks.
> 
> Additionally, if we do remove the @dom, then set it to NULL
> so that the virObjectUnlock isn't referencing something that
> is deleted.
> 
> Signed-off-by: John Ferlan <jferlan at redhat.com>
> ---
>  src/uml/uml_driver.c | 4 +++-
>  1 file changed, 3 insertions(+), 1 deletion(-)

Reviewed-by: Daniel P. Berrangé <berrange at redhat.com>


Regards,
Daniel
-- 
|: https://berrange.com      -o-    https://www.flickr.com/photos/dberrange :|
|: https://libvirt.org         -o-            https://fstop138.berrange.com :|
|: https://entangle-photo.org    -o-    https://www.instagram.com/dberrange :|




More information about the libvir-list mailing list