]> xenbits.xensource.com Git - libvirt.git/commitdiff
lxc: Remove unnecessary comment
authorJohn Ferlan <jferlan@redhat.com>
Sun, 3 Nov 2019 12:24:07 +0000 (07:24 -0500)
committerJohn Ferlan <jferlan@redhat.com>
Wed, 6 Nov 2019 16:27:12 +0000 (11:27 -0500)
Commit 66e2adb2ba moved the code and the coverity comment which now
was useless since the context was in lxcContainerSetupPivotRoot.

Signed-off-by: John Ferlan <jferlan@redhat.com>
Reviewed-by: Daniel P. Berrangé <berrange@redhat.com>
src/lxc/lxc_container.c

index a18b214a253e99b206e9bba285dcc41bcb714b93..1fb9049c968ecc87929b1463081a57b934e1fb8f 100644 (file)
@@ -1658,11 +1658,6 @@ static int lxcContainerUnmountForSharedRoot(const char *stateDir,
     /* Some versions of Linux kernel don't let you overmount
      * the selinux filesystem, so make sure we kill it first
      */
-    /* Filed coverity bug for false positive 'USE_AFTER_FREE' due to swap
-     * of root->src with root->dst and the VIR_FREE(root->src) prior to the
-     * reset of root->src in lxcContainerPrepareRoot()
-     */
-    /* coverity[deref_arg] */
     if (lxcContainerUnmountSubtree(SELINUX_MOUNT, false) < 0)
         goto cleanup;
 #endif