]> xenbits.xensource.com Git - libvirt.git/commitdiff
storage: Fix editing mistake in storagePoolSetAutostart
authorJohn Ferlan <jferlan@redhat.com>
Sat, 22 Jul 2017 11:05:55 +0000 (07:05 -0400)
committerJohn Ferlan <jferlan@redhat.com>
Sat, 22 Jul 2017 11:11:28 +0000 (07:11 -0400)
Commit id '905f1024b' had a rogue editing mistake that inadvertently
dropped a goto cleanup in storagePoolSetAutostart, but Coverity noted it.

src/storage/storage_driver.c

index df563f1bda3acd9bdefa290c54fa9c5d1a891b5c..e616ae05616367b20c9989b51ecada505443fd44 100644 (file)
@@ -1280,6 +1280,7 @@ storagePoolSetAutostart(virStoragePoolPtr pool,
     if (!obj->configFile) {
         virReportError(VIR_ERR_INTERNAL_ERROR,
                        "%s", _("pool has no config file"));
+        goto cleanup;
     }
 
     autostart = (autostart != 0);