patch-2.4.3 linux/include/asm-arm/uaccess.h

Next file: linux/include/asm-arm/unistd.h
Previous file: linux/include/asm-arm/proc-fns.h
Back to the patch index
Back to the overall index

diff -u --recursive --new-file v2.4.2/linux/include/asm-arm/uaccess.h linux/include/asm-arm/uaccess.h
@@ -182,7 +182,8 @@
 #define __put_user_nocheck(x,ptr,size)					\
 ({									\
 	long __pu_err = 0;						\
-	__put_user_size((x),(ptr),(size),__pu_err);			\
+	__typeof__(*(ptr)) *__pu_addr = (ptr);				\
+	__put_user_size((x),__pu_addr,(size),__pu_err);			\
 	__pu_err;							\
 })
 

FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)