projects
/
GitHub
/
mt8127
/
android_kernel_alcatel_ttab.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
7595ac0
)
Blackfin: debug-mmrs: prevent macro arg from expanding
author
Mike Frysinger
<vapier@gentoo.org>
Thu, 16 Jun 2011 22:22:11 +0000
(18:22 -0400)
committer
Mike Frysinger
<vapier@gentoo.org>
Sat, 23 Jul 2011 05:18:20 +0000
(
01:18
-0400)
Passing a non-simple expression in as the addr arg could incorrectly
apply the pointer cast resulting in misbehavior. Add proper paren.
Signed-off-by: Mike Frysinger <vapier@gentoo.org>
arch/blackfin/kernel/debug-mmrs.c
patch
|
blob
|
blame
|
history
diff --git
a/arch/blackfin/kernel/debug-mmrs.c
b/arch/blackfin/kernel/debug-mmrs.c
index 26ebfe8f63c263b1194838ad371312ef953a35f8..bafae87179038ae20b6f92c6bdbd7b3e145ce8fd 100644
(file)
--- a/
arch/blackfin/kernel/debug-mmrs.c
+++ b/
arch/blackfin/kernel/debug-mmrs.c
@@
-27,7
+27,7
@@
#define PORT_MUX BFIN_PORT_MUX
#endif
-#define _d(name, bits, addr, perms) debugfs_create_x##bits(name, perms, parent, (u##bits *)
addr
)
+#define _d(name, bits, addr, perms) debugfs_create_x##bits(name, perms, parent, (u##bits *)
(addr)
)
#define d(name, bits, addr) _d(name, bits, addr, S_IRUSR|S_IWUSR)
#define d_RO(name, bits, addr) _d(name, bits, addr, S_IRUSR)
#define d_WO(name, bits, addr) _d(name, bits, addr, S_IWUSR)