mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2024-08-26 19:00:25 +00:00
Blackfin: debug-mmrs: prevent macro arg from expanding
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>
This commit is contained in:
parent
7595ac0711
commit
94674b15df
1 changed files with 1 additions and 1 deletions
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue