summaryrefslogtreecommitdiffstats
path: root/lib/pb-protocol
diff options
context:
space:
mode:
Diffstat (limited to 'lib/pb-protocol')
-rw-r--r--lib/pb-protocol/pb-protocol.c2
-rw-r--r--lib/pb-protocol/pb-protocol.h1
2 files changed, 3 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++) {
diff --git a/lib/pb-protocol/pb-protocol.h b/lib/pb-protocol/pb-protocol.h
index 888e9b9..b2d57d2 100644
--- a/lib/pb-protocol/pb-protocol.h
+++ b/lib/pb-protocol/pb-protocol.h
@@ -28,6 +28,7 @@ struct device {
struct list boot_options;
+ int n_options;
void *ui_info;
};
OpenPOWER on IntegriCloud