From: Brandon Bergren Date: Sun, 10 Jun 2018 18:21:58 +0000 (-0500) Subject: Fix pb-discover segfaults caused by list corruption. X-Git-Tag: v1.9.0~77 X-Git-Url: https://git.ozlabs.org/?a=commitdiff_plain;h=917f7aa880a7c6ab08991ae0c969d0489ba48845;hp=917f7aa880a7c6ab08991ae0c969d0489ba48845;p=petitboot Fix pb-discover segfaults caused by list corruption. I was seeing list corruption and segfaults in pb-discover on my Talos II when using both yaboot and kboot config files on the same device. My assumption is that discover_context_add_boot_option() was being called on the same pointer more than once. So, null the pointer right after the call. The ownership was transferred anyway so the parsers should not keep it around. Signed-off-by: Brandon Bergren Signed-off-by: Samuel Mendoza-Jonas ---