Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
View | Details | Raw Unified | Return to bug 217030
Collapse All | Expand All

(-)a/include/asm-parisc/futex.h (-2 / +8 lines)
Lines 56-61 futex_atomic_cmpxchg_inatomic(int __user *uaddr, int oldval, int newval) Link Here
56
	int err = 0;
56
	int err = 0;
57
	int uval;
57
	int uval;
58
58
59
	/* futex.c wants to do a cmpxchg_inatomic on kernel NULL, which is
60
	 * our gateway page, and causes no end of trouble...
61
	 */
62
	if (segment_eq(KERNEL_DS, get_fs()) && !uaddr)
63
		return -EFAULT;
64
59
	if (!access_ok(VERIFY_WRITE, uaddr, sizeof(int)))
65
	if (!access_ok(VERIFY_WRITE, uaddr, sizeof(int)))
60
		return -EFAULT;
66
		return -EFAULT;
61
67
Lines 67-71 futex_atomic_cmpxchg_inatomic(int __user *uaddr, int oldval, int newval) Link Here
67
	return uval;
73
	return uval;
68
}
74
}
69
75
70
#endif
76
#endif /*__KERNEL__*/
71
#endif
77
#endif /*_ASM_PARISC_FUTEX_H*/

Return to bug 217030