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

Commit 9ed36279 authored by Nicolas Dichtel's avatar Nicolas Dichtel Committed by David S. Miller
Browse files

[DUMMY]: Avoid an oops when dummy_init_one() failed

parent 4a9c74e5
Loading
Loading
Loading
Loading
+1 −0
Original line number Diff line number Diff line
@@ -132,6 +132,7 @@ static int __init dummy_init_module(void)
	for (i = 0; i < numdummies && !err; i++)
		err = dummy_init_one(i); 
	if (err) { 
		i--;
		while (--i >= 0)
			dummy_free_one(i);
	}