]> git.hungrycats.org Git - linux/commitdiff
[PATCH] ppc64: missing set_fs(KERNEL_DS) in ppc32_timer_create, from Marcus Meissner
authorAndrew Morton <akpm@osdl.org>
Sat, 31 Jan 2004 01:57:06 +0000 (17:57 -0800)
committerLinus Torvalds <torvalds@home.osdl.org>
Sat, 31 Jan 2004 01:57:06 +0000 (17:57 -0800)
From: Anton Blanchard <anton@samba.org>

Small obvious fix to ppc32_timer_create.  Since sys_timer_create access
structures we pass on the stack, we need set_fs(KERNEL_DS).

arch/ppc64/kernel/sys_ppc32.c

index 5f81ce807dcc8ef5558e56bca625ad0660d364ef..b71b5e8248ed53eb8aaf20f904d68c58e9ce0ce4 100644 (file)
@@ -2845,6 +2845,7 @@ long ppc32_timer_create(clockid_t clock,
                return -EFAULT;
 
        savefs = get_fs();
+       set_fs(KERNEL_DS);
        err = sys_timer_create(clock, &event, &t);
        set_fs(savefs);