]> git.ozlabs.org Git - petitboot/commit - lib/pb-protocol/pb-protocol.c
lib/pb-protocol: fix deserialise of boot option priorities
authorJeremy Kerr <jk@ozlabs.org>
Mon, 7 Apr 2014 07:22:46 +0000 (15:22 +0800)
committerJeremy Kerr <jk@ozlabs.org>
Mon, 7 Apr 2014 07:22:46 +0000 (15:22 +0800)
commitbc72527a1426c2159112707d3a6c9bb544fd6647
treedaee062a803e2f0b95d5123de859f495b9c7e15a
parent0dd467aef0f1e104faf8ad5b1d4deaaf71732278
lib/pb-protocol: fix deserialise of boot option priorities

Commit aa530148 introduced a priority member to struct boot_priority,
but didn't update the protocol deserialise function to properly decode
config messages. This meant we were leaving half of the struct
uninitialised, and getting invalid values in the initialised part.

This change updates the config deserialise function to do proper
handling for boot priority data.

Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
lib/pb-protocol/pb-protocol.c