Re: [RFC Patch 1/2] kexec: show memory info in /proc/iomem

From: Amerigo Wang
Date: Tue Aug 11 2009 - 21:25:38 EST


Yu, Fenghua wrote:
+
+out_free:
+ kfree(kexec_free_res);
+ kfree(kexec_res);
+out_release:
+ release_resource(kexec_res);
+ goto out;
}

The order of out_free: and out_release: might be reversed. You need to release_resource first; then kfree. Otherwise the previous failures jump to here and will cause problem.

Ahh, sure! I will fix it. Thanks!

--
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to majordomo@xxxxxxxxxxxxxxx
More majordomo info at http://vger.kernel.org/majordomo-info.html
Please read the FAQ at http://www.tux.org/lkml/