]> git.ozlabs.org Git - petitboot/commitdiff
discover/boot: Fix talloc parent for resource URLs
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Thu, 29 Nov 2018 00:53:05 +0000 (11:53 +1100)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Thu, 29 Nov 2018 00:53:05 +0000 (11:53 +1100)
The pb_urls for the boot resources use 'opt' as the talloc parent but
this may be NULL, for example if this is a user-created boot option.
Move the boot_task initialisation so it can be used as the talloc parent
instead.

Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>

No differences found