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>
config->n_boot_priorities);
for (i = 0; i < config->n_boot_priorities; i++) {
+ if (read_u32(&pos, &len, &tmp))
+ goto out;
+ config->boot_priorities[i].priority = (int)tmp;
if (read_u32(&pos, &len, &tmp))
goto out;
config->boot_priorities[i].type = tmp;