diff options
Diffstat (limited to 'kernel/compat.c')
| -rw-r--r-- | kernel/compat.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/kernel/compat.c b/kernel/compat.c index ebb3c369d03d..24f00610c575 100644 --- a/kernel/compat.c +++ b/kernel/compat.c | |||
| @@ -276,8 +276,7 @@ COMPAT_SYSCALL_DEFINE2(nanosleep, struct compat_timespec __user *, rqtp, | |||
| 276 | * core implementation decides to return random nonsense. | 276 | * core implementation decides to return random nonsense. |
| 277 | */ | 277 | */ |
| 278 | if (ret == -ERESTART_RESTARTBLOCK) { | 278 | if (ret == -ERESTART_RESTARTBLOCK) { |
| 279 | struct restart_block *restart | 279 | struct restart_block *restart = ¤t->restart_block; |
| 280 | = ¤t_thread_info()->restart_block; | ||
| 281 | 280 | ||
| 282 | restart->fn = compat_nanosleep_restart; | 281 | restart->fn = compat_nanosleep_restart; |
| 283 | restart->nanosleep.compat_rmtp = rmtp; | 282 | restart->nanosleep.compat_rmtp = rmtp; |
| @@ -860,7 +859,7 @@ COMPAT_SYSCALL_DEFINE4(clock_nanosleep, clockid_t, which_clock, int, flags, | |||
| 860 | return -EFAULT; | 859 | return -EFAULT; |
| 861 | 860 | ||
| 862 | if (err == -ERESTART_RESTARTBLOCK) { | 861 | if (err == -ERESTART_RESTARTBLOCK) { |
| 863 | restart = ¤t_thread_info()->restart_block; | 862 | restart = ¤t->restart_block; |
| 864 | restart->fn = compat_clock_nanosleep_restart; | 863 | restart->fn = compat_clock_nanosleep_restart; |
| 865 | restart->nanosleep.compat_rmtp = rmtp; | 864 | restart->nanosleep.compat_rmtp = rmtp; |
| 866 | } | 865 | } |
