summaryrefslogtreecommitdiffstats
path: root/lib/pb-protocol/pb-protocol.c
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pb-protocol/pb-protocol.c')
-rw-r--r--lib/pb-protocol/pb-protocol.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/lib/pb-protocol/pb-protocol.c b/lib/pb-protocol/pb-protocol.c
index 6f278c8..a85b8a9 100644
--- a/lib/pb-protocol/pb-protocol.c
+++ b/lib/pb-protocol/pb-protocol.c
@@ -311,6 +311,8 @@ struct device *pb_protocol_deserialise_device(void *ctx,
n_options = __be32_to_cpu(*(uint32_t *)pos);
pos += sizeof(uint32_t);
+ dev->n_options = n_options;
+
list_init(&dev->boot_options);
for (i = 0; i < n_options; i++) {
OpenPOWER on IntegriCloud