lguest: fix occasional crash in example launcher.
authorRusty Russell <rusty@rustcorp.com.au>
Thu, 4 Oct 2012 02:33:25 +0000 (11:33 +0930)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Fri, 12 Oct 2012 20:38:38 +0000 (05:38 +0900)
commit9825e3158e302980b71c54b72e90f0624e1cfab3
treead239e0cab8597119fbe80c666c4dfcddb8cef16
parent0c0b534583fb1c02809e0a3978413fe79f7dac8f
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>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
tools/lguest/lguest.c