]> git.baikalelectronics.ru Git - kernel.git/commit
bitops: protect variables in bit_clear_unless() 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)
commit78eeba525011f29637a082540c8c8e8e2443d1f9
treea8cf448df087ed559e97a09f1adf0bb5f7c59f12
parent784b75b082cd89b61f06550e9642699ca135f300
bitops: protect variables in bit_clear_unless() macro

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

Noticed this by code review after having hit this issue in set_mask_bits()

Signed-off-by: Miklos Szeredi <mszeredi@redhat.com>
Fixes: 085dd83d2f4e ("md: set MD_CHANGE_PENDING in a atomic region")
Cc: Guoqing Jiang <gqjiang@suse.com>
include/linux/bitops.h