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>
Thu, 12 Jan 2023 10:58:43 +0000 (11:58 +0100)
commitf068a7315a9eaa68ca6025fe483dfd2757da3050
tree757ae00e05e7f40e2c2b67d551131d43d51db160
parent576502f25f7912cdfd65fe22ee4dd2a40b6e27a9
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