Skip to content

Commit

Permalink
[PATCH] Remove redundant up() in stop_machine()
Browse files Browse the repository at this point in the history
An up() is called in kernel/stop_machine.c on failure, and also in the
caller (unconditionally).

Signed-off-by: Zhou Yingchao <yingchao.zhou@gmail.com>
Cc: <stable@kernel.org>
Signed-off-by: Andrew Morton <akpm@osdl.org>
Signed-off-by: Linus Torvalds <torvalds@osdl.org>
  • Loading branch information
Yingchao Zhou authored and Linus Torvalds committed Aug 27, 2006
1 parent ecdc639 commit 4edb9a1
Showing 1 changed file with 0 additions and 1 deletion.
1 change: 0 additions & 1 deletion kernel/stop_machine.c
Expand Up @@ -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;
}

Expand Down

0 comments on commit 4edb9a1

Please sign in to comment.