Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit ca16f580 authored by Rusty Russell's avatar Rusty Russell
Browse files

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: default avatarRusty Russell <rusty@rustcorp.com.au>
Cc: stable@kernel.org
parent bb811108
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -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