]> git.baikalelectronics.ru Git - kernel.git/commit
bitops: protect variables in set_mask_bits() macro
authorMiklos Szeredi <mszeredi@redhat.com>
Mon, 15 Oct 2018 13:43:06 +0000 (15:43 +0200)
committerMiklos Szeredi <mszeredi@redhat.com>
Mon, 15 Oct 2018 13:43:06 +0000 (15:43 +0200)
commitf43214e3c26d0ec87ded508f699d217f38549bc8
tree3d54b865f04f8a707cbca858c75c80065ac4a6ec
parentcb637952d551e1ffbd8f2f0ad270adcdbff26235
bitops: protect variables in set_mask_bits() macro

Unprotected naming of local variables within the set_mask_bits() can easily
lead to using the wrong scope.

Noticed this when "set_mask_bits(&foo->bar, 0, mask)" behaved as no-op.

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Fixes: ab8e067af85c ("ext4: atomically set inode->i_flags in ext4_set_inode_flags()")
Cc: Theodore Ts'o <tytso@mit.edu>
include/linux/bitops.h