summaryrefslogtreecommitdiffstats
path: root/include/linux/genhd.h
diff options
context:
space:
mode:
authorMiklos Szeredi2018-10-15 15:43:06 +0200
committerMiklos Szeredi2018-10-15 15:43:06 +0200
commitedfa87281f4fa1b78a21f6db999935a2faa2f6b8 (patch)
treea8cf448df087ed559e97a09f1adf0bb5f7c59f12 /include/linux/genhd.h
parentbitops: protect variables in set_mask_bits() macro (diff)
downloadkernel-qcow2-linux-edfa87281f4fa1b78a21f6db999935a2faa2f6b8.tar.gz
kernel-qcow2-linux-edfa87281f4fa1b78a21f6db999935a2faa2f6b8.tar.xz
kernel-qcow2-linux-edfa87281f4fa1b78a21f6db999935a2faa2f6b8.zip
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: 85ad1d13ee9b ("md: set MD_CHANGE_PENDING in a atomic region") Cc: Guoqing Jiang <gqjiang@suse.com>
Diffstat (limited to 'include/linux/genhd.h')
0 files changed, 0 insertions, 0 deletions