]> git.ozlabs.org Git - petitboot/commitdiff
discover/boot: Copy local paths before running boot hooks
authorJeremy Kerr <jk@ozlabs.org>
Thu, 5 Dec 2013 06:54:13 +0000 (14:54 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Thu, 5 Dec 2013 07:11:46 +0000 (15:11 +0800)
We're seeing a crash when boot hooks are specifying new resources, as
boot_hook_update_param will write to a NULL struct load_url_result.

Instead of writing the updated values to the struct, copy the local
parts of the result to a separate string, which the boot hooks are free
to update.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>

No differences found