summaryrefslogtreecommitdiffstats
path: root/Documentation
diff options
context:
space:
mode:
authorRusty Russell <rusty@rustcorp.com.au>2012-10-04 12:03:25 +0930
committerBen Hutchings <ben@decadent.org.uk>2012-10-17 03:49:30 +0100
commit9fa4daeca1536418310d338ffc0d0e0d88594157 (patch)
tree90be710044514d4dd6bd47412eca6ba102311561 /Documentation
parent601e4d671ac72bbb37b6d3c5981bd3792ffd07bb (diff)
downloadlinux-stable-9fa4daeca1536418310d338ffc0d0e0d88594157.tar.gz
linux-stable-9fa4daeca1536418310d338ffc0d0e0d88594157.tar.bz2
linux-stable-9fa4daeca1536418310d338ffc0d0e0d88594157.zip
lguest: fix occasional crash in example launcher.
commit ca16f580a5db7e60bfafe59a50bb133bd3347491 upstream. We usually got away with ->next on the final entry being NULL, but it finally bit me. Signed-off-by: Rusty Russell <rusty@rustcorp.com.au> [bwh: Backported to 3.2: adjust filename] Signed-off-by: Ben Hutchings <ben@decadent.org.uk>
Diffstat (limited to 'Documentation')
-rw-r--r--Documentation/virtual/lguest/lguest.c1
1 files changed, 1 insertions, 0 deletions
diff --git a/Documentation/virtual/lguest/lguest.c b/Documentation/virtual/lguest/lguest.c
index c095d79cae73..288dba6e1037 100644
--- a/Documentation/virtual/lguest/lguest.c
+++ b/Documentation/virtual/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