[PATCH 4/8] gcc41 fixes: v850 get_user()

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Date: 1135880312 -0500

Signed-off-by: Al Viro <[email protected]>

---

 include/asm-v850/uaccess.h |    7 +------
 1 files changed, 1 insertions(+), 6 deletions(-)

f24dd1b50636edb17b875d8b3290ff27727af0c3
diff --git a/include/asm-v850/uaccess.h b/include/asm-v850/uaccess.h
index 64563c4..b6c4409 100644
--- a/include/asm-v850/uaccess.h
+++ b/include/asm-v850/uaccess.h
@@ -59,18 +59,13 @@ extern int bad_user_access_length (void)
 #define __get_user(var, ptr)						      \
   ({									      \
 	  int __gu_err = 0;						      \
-	  typeof(*(ptr)) __gu_val = 0;					      \
+	  typeof(*(ptr)) __gu_val = *ptr;				      \
 	  switch (sizeof (*(ptr))) {					      \
 	  case 1:							      \
 	  case 2:							      \
 	  case 4:							      \
-		  __gu_val = *(ptr);					      \
-		  break;						      \
-	  case 8:							      \
-		  memcpy(&__gu_val, ptr, sizeof(__gu_val));		      \
 		  break;						      \
 	  default:							      \
-		  __gu_val = 0;						      \
 		  __gu_err = __get_user_bad ();				      \
 		  break;						      \
 	  }								      \
-- 
0.99.9.GIT

-
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in
the body of a message to [email protected]
More majordomo info at  http://vger.kernel.org/majordomo-info.html
Please read the FAQ at  http://www.tux.org/lkml/

[Index of Archives]     [Kernel Newbies]     [Netfilter]     [Bugtraq]     [Photo]     [Stuff]     [Gimp]     [Yosemite News]     [MIPS Linux]     [ARM Linux]     [Linux Security]     [Linux RAID]     [Video 4 Linux]     [Linux for the blind]     [Linux Resources]
  Powered by Linux