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)
commita574e81b37c0add6c143d90b074ea508970a9ca7
tree79eee4cf5ccabcb6a89c33f4bdeda648c1f934d9
parentaa9732dae4bc4fe98a0efb43c4796aae62b6105e
nvme: fix the NVME_CMD_EFFECTS_CSE_MASK definition

[ Upstream commit 685e6311637e46f3212439ce2789f8a300e5050f ]

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: 84fef62d135b ("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