[CRIU] [PATCH] restore: sigreturn_restore: free core _after_ using it

Pavel Emelyanov xemul at parallels.com
Mon Aug 4 02:09:09 PDT 2014


On 07/31/2014 02:00 AM, Ruslan Kuprieiev wrote:
> Currently we have this:
> 	.......
> 	/* No longer need it */
> 	core_entry__free_unpacked(core, NULL);
> 
> 	ret = prepare_itimers(pid, core, task_args);
> 	if (ret < 0)
> 		goto err;
> 	.......
> 
> So we're using ptr right after free-ing it.
> 
> Signed-off-by: Ruslan Kuprieiev <kupruser at gmail.com>

applied



More information about the CRIU mailing list