]> git.baikalelectronics.ru Git - kernel.git/commit
nvme: fix the NVME_CMD_EFFECTS_CSE_MASK definition
authorChristoph Hellwig <hch@lst.de>
Wed, 21 Dec 2022 09:30:45 +0000 (10:30 +0100)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Wed, 4 Jan 2023 10:28:52 +0000 (11:28 +0100)
commit5285f4194c2796f221cd908cdbefb2a98ba65801
tree79eee4cf5ccabcb6a89c33f4bdeda648c1f934d9
parentdc480732c0a42ce9e57b30a7e434eff67f0217db
nvme: fix the NVME_CMD_EFFECTS_CSE_MASK definition

[ Upstream commit baa6a4d3d9b72ea100482d73b838771eed74b57c ]

3 << 16 does not generate the correct mask for bits 16, 17 and 18.
Use the GENMASK macro to generate the correct mask instead.

Fixes: 16da0e12e1b3 ("nvme: check admin passthru command effects")
Signed-off-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Keith Busch <kbusch@kernel.org>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Reviewed-by: Kanchan Joshi <joshi.k@samsung.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
include/linux/nvme.h