Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

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

+1
+1
tools/lguest/lguest.c
··· 1299 1299 dev->feature_len = 0; 1300 1300 dev->num_vq = 0; 1301 1301 dev->running = false; 1302 + dev->next = NULL; 1302 1303 1303 1304 /* 1304 1305 * Append to device list. Prepending to a single-linked list is