summaryrefslogtreecommitdiffstats
path: root/tools/lguest
diff options
context:
space:
mode:
Diffstat (limited to 'tools/lguest')
-rw-r--r--tools/lguest/lguest.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lguest/lguest.c b/tools/lguest/lguest.c
index f759f4f..fd2f922 100644
--- a/tools/lguest/lguest.c
+++ b/tools/lguest/lguest.c
@@ -1299,6 +1299,7 @@ static struct device *new_device(const char *name, u16 type)
dev->feature_len = 0;
dev->num_vq = 0;
dev->running = false;
+ dev->next = NULL;
/*
* Append to device list. Prepending to a single-linked list is
OpenPOWER on IntegriCloud