diff options
Diffstat (limited to 'kernel/posix-timers.c')
-rw-r--r-- | kernel/posix-timers.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/kernel/posix-timers.c b/kernel/posix-timers.c index e5498d7405c3..a1b5edf1bf92 100644 --- a/kernel/posix-timers.c +++ b/kernel/posix-timers.c | |||
@@ -1056,7 +1056,7 @@ SYSCALL_DEFINE4(clock_nanosleep, const clockid_t, which_clock, int, flags, | |||
1056 | */ | 1056 | */ |
1057 | long clock_nanosleep_restart(struct restart_block *restart_block) | 1057 | long clock_nanosleep_restart(struct restart_block *restart_block) |
1058 | { | 1058 | { |
1059 | clockid_t which_clock = restart_block->nanosleep.index; | 1059 | clockid_t which_clock = restart_block->nanosleep.clockid; |
1060 | struct k_clock *kc = clockid_to_kclock(which_clock); | 1060 | struct k_clock *kc = clockid_to_kclock(which_clock); |
1061 | 1061 | ||
1062 | if (WARN_ON_ONCE(!kc || !kc->nsleep_restart)) | 1062 | if (WARN_ON_ONCE(!kc || !kc->nsleep_restart)) |