diff options
author | Rusty Russell <rusty@rustcorp.com.au> | 2012-10-04 04:33:25 +0200 |
---|---|---|
committer | Rusty Russell <rusty@rustcorp.com.au> | 2012-10-04 04:42:59 +0200 |
commit | ca16f580a5db7e60bfafe59a50bb133bd3347491 (patch) | |
tree | 0a3fd31a489c5c3f72ca0170612a8b887d45f3a5 /tools | |
parent | virtio-blk: Disable callback in virtblk_done() (diff) | |
download | linux-ca16f580a5db7e60bfafe59a50bb133bd3347491.tar.xz linux-ca16f580a5db7e60bfafe59a50bb133bd3347491.zip |
lguest: fix occasional crash in example launcher.
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>
Cc: stable@kernel.org
Diffstat (limited to 'tools')
-rw-r--r-- | tools/lguest/lguest.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/tools/lguest/lguest.c b/tools/lguest/lguest.c index f759f4f097c7..fd2f9221b241 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 |