lguest: fix occasional crash in example launcher.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 4 Oct 2012 02:33:25 +0000 (12:03 +0930)
committerRusty Russell <rusty@rustcorp.com.au>
Thu, 4 Oct 2012 02:42:59 +0000 (12:12 +0930)
commitca16f580a5db7e60bfafe59a50bb133bd3347491
tree0a3fd31a489c5c3f72ca0170612a8b887d45f3a5
parentbb8111086c12ebdadc0544ba04dccd3aad212ad2
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
tools/lguest/lguest.c