Skip to content

Commit

Permalink
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc
Browse files Browse the repository at this point in the history
Pull sparc fix from David Miller:
 "adjtimex regression fix from Arnd"

* git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc:
  sparc64: fix adjtimex regression
  • Loading branch information
Linus Torvalds committed Feb 2, 2020
2 parents 545ae66 + 11648b8 commit 46d6b7b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions arch/sparc/kernel/sys_sparc_64.c
Original file line number Diff line number Diff line change
Expand Up @@ -551,7 +551,7 @@ SYSCALL_DEFINE2(getdomainname, char __user *, name, int, len)
SYSCALL_DEFINE1(sparc_adjtimex, struct __kernel_timex __user *, txc_p)
{
struct __kernel_timex txc;
struct __kernel_old_timeval *tv = (void *)&txc_p->time;
struct __kernel_old_timeval *tv = (void *)&txc.time;
int ret;

/* Copy the user data space into the kernel copy
Expand All @@ -576,7 +576,7 @@ SYSCALL_DEFINE2(sparc_clock_adjtime, const clockid_t, which_clock,
struct __kernel_timex __user *, txc_p)
{
struct __kernel_timex txc;
struct __kernel_old_timeval *tv = (void *)&txc_p->time;
struct __kernel_old_timeval *tv = (void *)&txc.time;
int ret;

if (!IS_ENABLED(CONFIG_POSIX_TIMERS)) {
Expand Down

0 comments on commit 46d6b7b

Please sign in to comment.