Upgrade to 4.4.50-rt62
[kvmfornfv.git] / kernel / kernel / kexec_file.c
index b70ada0..6030efd 100644 (file)
@@ -934,7 +934,10 @@ int kexec_load_purgatory(struct kimage *image, unsigned long min,
        return 0;
 out:
        vfree(pi->sechdrs);
+       pi->sechdrs = NULL;
+
        vfree(pi->purgatory_buf);
+       pi->purgatory_buf = NULL;
        return ret;
 }