projects
/
unionfs-2.6.39.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
601e4d6
)
lguest: fix occasional crash in example launcher.
author
Rusty Russell
<rusty@rustcorp.com.au>
Thu, 4 Oct 2012 02:33:25 +0000
(12:03 +0930)
committer
Ben Hutchings
<ben@decadent.org.uk>
Wed, 17 Oct 2012 02:49:30 +0000
(
03:49
+0100)
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>
Documentation/virtual/lguest/lguest.c
patch
|
blob
|
history
diff --git
a/Documentation/virtual/lguest/lguest.c
b/Documentation/virtual/lguest/lguest.c
index c095d79cae73d1acf8d2ae9991661be35be008bd..288dba6e1037cc39dce44d67e67b850179f50fda 100644
(file)
--- 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