hc
2024-12-19 9370bb92b2d16684ee45cf24e879c93c509162da
kernel/kernel/time/hrtimer.c
....@@ -2024,6 +2024,7 @@
20242024 if (!timespec64_valid(&tu))
20252025 return -EINVAL;
20262026
2027
+ current->restart_block.fn = do_no_restart_syscall;
20272028 current->restart_block.nanosleep.type = rmtp ? TT_NATIVE : TT_NONE;
20282029 current->restart_block.nanosleep.rmtp = rmtp;
20292030 return hrtimer_nanosleep(timespec64_to_ktime(tu), HRTIMER_MODE_REL,
....@@ -2045,6 +2046,7 @@
20452046 if (!timespec64_valid(&tu))
20462047 return -EINVAL;
20472048
2049
+ current->restart_block.fn = do_no_restart_syscall;
20482050 current->restart_block.nanosleep.type = rmtp ? TT_COMPAT : TT_NONE;
20492051 current->restart_block.nanosleep.compat_rmtp = rmtp;
20502052 return hrtimer_nanosleep(timespec64_to_ktime(tu), HRTIMER_MODE_REL,