discover/platform-powerpc: Reject bootdevs with empty UUIDs
authorSamuel Mendoza-Jonas <sam@mendozajonas.com>
Tue, 22 Nov 2016 00:00:42 +0000 (11:00 +1100)
committerSamuel Mendoza-Jonas <sam@mendozajonas.com>
Thu, 24 Nov 2016 00:42:25 +0000 (11:42 +1100)
commit5bf4ee3677385d655ad06878b9a504f606baa73e
treeda5a76edc3b329c53e0f24a45377a702b6f8ed25
parent3daa33e027e327e75835ed5570bab150cb5e7a10
discover/platform-powerpc: Reject bootdevs with empty UUIDs

If a "uuid:" label is set in the petitboot,bootdevs parameter without a
matching UUID, the UUID is unintentionally accepted and set to NULL.
This can cause a segfault in nc-config when device UUIDs are compared
against the autoboot option. Instead treat options like this as
malformed.

Signed-off-by: Samuel Mendoza-Jonas <sam@mendozajonas.com>
discover/platform-powerpc.c