summaryrefslogtreecommitdiffstats
path: root/discover/pb-discover.c
diff options
context:
space:
mode:
authorSam Mendoza-Jonas <sam@mendozajonas.com>2016-03-15 13:35:21 +1100
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>2016-03-23 09:02:35 +1100
commit66ff1c8d36be43e53831a7ada7e2d10bac516afe (patch)
tree304ed6b0adf780abe3a42fded66084e91cb08a0a /discover/pb-discover.c
parentaae41a6e324cb37c7af93ae8726110ff82728fa6 (diff)
downloadtalos-petitboot-66ff1c8d36be43e53831a7ada7e2d10bac516afe.tar.gz
talos-petitboot-66ff1c8d36be43e53831a7ada7e2d10bac516afe.zip
discover/boot: Safely cleanup after failed load
If a call to load_url_async() fails immediately, boot() will free the boot task and return. If other jobs started by load_url_async() are still running they will attempt to free their task struct in load_url_process_exit(), however the original boot task is the parent context of this process task, resulting in a double-free. Instead call cleanup_cancellations if an error immediately occurs to cancel any pending load operations safely before freeing the boot task. Signed-off-by: Sam Mendoza-Jonas <sam@mendozajonas.com>
Diffstat (limited to 'discover/pb-discover.c')
0 files changed, 0 insertions, 0 deletions
OpenPOWER on IntegriCloud