]> git.ipfire.org Git - thirdparty/libvirt.git/commit
src: Fix label logic in virStorageBackendSCSITriggerRescan
authorJohn Ferlan <jferlan@redhat.com>
Tue, 12 Feb 2019 02:46:28 +0000 (21:46 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Tue, 12 Feb 2019 13:51:23 +0000 (08:51 -0500)
commit763b76cbf626f5ed851bbab85a922bfd8afdeb5e
treebf8118c70b1eff782061a1f548138465c7c4d1ca
parent9a4199304ffb8eda0f8e27c037f51b3fa61f261a
src: Fix label logic in virStorageBackendSCSITriggerRescan

Let's initialize @path to NULL, then rather than use two labels
free_path and out labels, let's use the cleanup: label to call
VIR_FREE(path); and VIR_FORCE_CLOSE(fd);

Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Ján Tomko <jtomko@redhat.com>
src/storage/storage_backend_scsi.c