aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--kernel/rwsem.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/rwsem.c b/kernel/rwsem.c
index 291ded556aa0..9a87886b022e 100644
--- a/kernel/rwsem.c
+++ b/kernel/rwsem.c
@@ -60,7 +60,7 @@ int down_write_trylock(struct rw_semaphore *sem)
60 int ret = __down_write_trylock(sem); 60 int ret = __down_write_trylock(sem);
61 61
62 if (ret == 1) 62 if (ret == 1)
63 rwsem_acquire(&sem->dep_map, 0, 0, _RET_IP_); 63 rwsem_acquire(&sem->dep_map, 0, 1, _RET_IP_);
64 return ret; 64 return ret;
65} 65}
66 66