]> 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, 18 Jan 2023 10:41:43 +0000 (11:41 +0100)
commitf3144bec8de467e6947f6c848209dc8f159e7333
tree9201a54fda6341749075b78c12b837ecf963703e
parent2585f7a8b7b5ad9de118caa27a77be711b0e5d31
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: 13329f5e2749 ("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