summaryrefslogtreecommitdiffstats
path: root/test
diff options
context:
space:
mode:
authorJeremy Kerr <jk@ozlabs.org>2013-08-01 15:25:53 +0800
committerJeremy Kerr <jk@ozlabs.org>2013-08-01 15:25:53 +0800
commitf9a63d3a640cb30a12598cedc0dd7d8b6fc5b4de (patch)
tree47d82328de01477ea48098c3c003d2275a526d1c /test
parent404c07fc44449be7b011d1961280ef9c96e0760d (diff)
downloadtalos-petitboot-f9a63d3a640cb30a12598cedc0dd7d8b6fc5b4de.tar.gz
talos-petitboot-f9a63d3a640cb30a12598cedc0dd7d8b6fc5b4de.zip
discover: fix segfault on failed boot image load
If the boot image fails to load, we end up calling talloc_free on an unitialised are of stack (boot_task.local_initrd). Move the initialisers a little earlier, so we always NULL pointers before potentially freeing. Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'test')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud