small fix to ppc32_timer_create

Marcus Meissner meissner at suse.de
Thu Jan 15 04:38:09 EST 2004


Hi,

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

Ciao, Marcus

--- arch/ppc64/kernel/sys_ppc32.c	2004-01-14 12:17:56.000000000 +0000
+++ arch/ppc64/kernel/sys_ppc32.c	2004-01-14 17:20:26.000000000 +0000
@@ -2934,6 +2934,7 @@
 		return -EFAULT;

 	savefs = get_fs();
+	set_fs(KERNEL_DS);
 	err = sys_timer_create(clock, &event, &t);
 	set_fs(savefs);


** Sent via the linuxppc64-dev mail list. See http://lists.linuxppc.org/





More information about the Linuxppc64-dev mailing list