projects
/
linux-block.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
| inline |
side by side
test_kmod: fix the lock in register_test_dev_kmod()
[linux-block.git]
/
lib
/
test_kmod.c
diff --git
a/lib/test_kmod.c
b/lib/test_kmod.c
index 8fc0a7a19c8399c6f3f8f4ff7dbf795064239ee8..1bc06bbfc97a4818574de4fa27200b4ab519b679 100644
(file)
--- a/
lib/test_kmod.c
+++ b/
lib/test_kmod.c
@@
-1146,7
+1146,7
@@
static struct kmod_test_device *register_test_dev_kmod(void)
struct kmod_test_device *test_dev = NULL;
int ret;
- mutex_
un
lock(®_dev_mutex);
+ mutex_lock(®_dev_mutex);
/* int should suffice for number of devices, test for wrap */
if (unlikely(num_test_devs + 1) < 0) {