Skip to content

Commit 46d6b7b

Browse files
committed
Merge git://git.kernel.org/pub/scm/linux/kernel/git/davem/sparc
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
2 parents 545ae66 + 11648b8 commit 46d6b7b

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

arch/sparc/kernel/sys_sparc_64.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -551,7 +551,7 @@ SYSCALL_DEFINE2(getdomainname, char __user *, name, int, len)
551551
SYSCALL_DEFINE1(sparc_adjtimex, struct __kernel_timex __user *, txc_p)
552552
{
553553
struct __kernel_timex txc;
554-
struct __kernel_old_timeval *tv = (void *)&txc_p->time;
554+
struct __kernel_old_timeval *tv = (void *)&txc.time;
555555
int ret;
556556

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

582582
if (!IS_ENABLED(CONFIG_POSIX_TIMERS)) {

0 commit comments

Comments
 (0)