bitops: protect variables in bit_clear_unless() macro
mainline inclusion from mainline-4.20-rc1 commit edfa87281f4fa1b78a21f6db999935a2faa2f6b8 category: bugfix bugzilla: 5544 CVE: NA --------------------------- 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: NMiklos Szeredi <mszeredi@redhat.com> Fixes: 85ad1d13 ("md: set MD_CHANGE_PENDING in a atomic region") Cc: Guoqing Jiang <gqjiang@suse.com> Signed-off-by: NJason Yan <yanaijie@huawei.com> Reviewed-by: Nzhengbin <zhengbin13@huawei.com> Signed-off-by: NYang Yingliang <yangyingliang@huawei.com>
Showing
想要评论请 注册 或 登录