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

Commit 4edb9a14 authored by Yingchao Zhou's avatar Yingchao Zhou Committed by Linus Torvalds
Browse files

[PATCH] Remove redundant up() in stop_machine()



An up() is called in kernel/stop_machine.c on failure, and also in the
caller (unconditionally).

Signed-off-by: default avatarZhou Yingchao <yingchao.zhou@gmail.com>
Cc: <stable@kernel.org>
Signed-off-by: default avatarAndrew Morton <akpm@osdl.org>
Signed-off-by: default avatarLinus Torvalds <torvalds@osdl.org>
parent ecdc6394
Loading
Loading
Loading
Loading
+0 −1
Original line number Diff line number Diff line
@@ -111,7 +111,6 @@ static int stop_machine(void)
	/* If some failed, kill them all. */
	if (ret < 0) {
		stopmachine_set_state(STOPMACHINE_EXIT);
		up(&stopmachine_mutex);
		return ret;
	}