]> git.baikalelectronics.ru Git - kernel.git/commit
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)
commit9ab88857a5038b26f3354231431a2e6df23b642e
treedbabe546198f7e2d4386a36345730541e747ab58
parent70b4c7f28e1565b5de7c31103941dc2886c664e1
fail_function: Remove a redundant mutex unlock

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

Fixes: 47e7d7270b31 ("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