fail_function: Remove a redundant mutex unlock
authorLuo Meng <luomeng12@huawei.com>
Wed, 18 Nov 2020 13:49:31 +0000 (22:49 +0900)
committerAlexei Starovoitov <ast@kernel.org>
Thu, 19 Nov 2020 19:58:16 +0000 (11:58 -0800)
commit2801a5da5b25b7af9dd2addd19b2315c02d17b64
treedbabe546198f7e2d4386a36345730541e747ab58
parent14d6d86c210aea1a83c19a8f6391ecabcbefed94
fail_function: Remove a redundant mutex unlock

Fix a mutex_unlock() issue where before copy_from_user() is
not called mutex_locked.

Fixes: 4b1a29a7f542 ("error-injection: Support fault injection framework")
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Luo Meng <luomeng12@huawei.com>
Signed-off-by: Masami Hiramatsu <mhiramat@kernel.org>
Signed-off-by: Alexei Starovoitov <ast@kernel.org>
Acked-by: Masami Hiramatsu <mhiramat@kernel.org>
Link: https://lore.kernel.org/bpf/160570737118.263807.8358435412898356284.stgit@devnote2
kernel/fail_function.c