projects
/
linux.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
98b6ed0
)
mn10300: Allow to pass array name to get_user()
author
Akira Takeuchi
<takeuchi.akr@jp.panasonic.com>
Fri, 28 Jun 2013 15:53:01 +0000
(16:53 +0100)
committer
David Howells
<dhowells@redhat.com>
Fri, 28 Jun 2013 15:53:01 +0000
(16:53 +0100)
This fixes the following compile error:
CC block/scsi_ioctl.o
block/scsi_ioctl.c: In function 'sg_scsi_ioctl':
block/scsi_ioctl.c:449: error: invalid initializer
Signed-off-by: David Howells <dhowells@redhat.com>
arch/mn10300/include/asm/uaccess.h
patch
|
blob
|
history
diff --git
a/arch/mn10300/include/asm/uaccess.h
b/arch/mn10300/include/asm/uaccess.h
index 780560b330d9ef9109a76b0210185f3bc178ca8e..d7966e0f76988cfb2d36d0b480277961dcef7e3a 100644
(file)
--- a/
arch/mn10300/include/asm/uaccess.h
+++ b/
arch/mn10300/include/asm/uaccess.h
@@
-161,7
+161,7
@@
struct __large_struct { unsigned long buf[100]; };
#define __get_user_check(x, ptr, size) \
({ \
- const __typeof__(
ptr) __guc_ptr = (ptr);
\
+ const __typeof__(
*(ptr))* __guc_ptr = (ptr);
\
int _e; \
if (likely(__access_ok((unsigned long) __guc_ptr, (size)))) \
_e = __get_user_nocheck((x), __guc_ptr, (size)); \