Skip to content

Commit b938e66

Browse files
ankit-samkeithbusch
authored andcommitted
nvme: fix the NVME_ID_NS_NVM_STS_MASK definition
As per NVMe command set specification 1.0c Storage tag size is 7 bits. Fixes: 4020aad ("nvme: add support for enhanced metadata") Signed-off-by: Ankit Kumar <ankit.kumar@samsung.com> Reviewed-by: Kanchan Joshi <joshi.k@samsung.com> Signed-off-by: Keith Busch <kbusch@kernel.org>
1 parent 9bcf156 commit b938e66

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

include/linux/nvme.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -473,7 +473,7 @@ struct nvme_id_ns_nvm {
473473
};
474474

475475
enum {
476-
NVME_ID_NS_NVM_STS_MASK = 0x3f,
476+
NVME_ID_NS_NVM_STS_MASK = 0x7f,
477477
NVME_ID_NS_NVM_GUARD_SHIFT = 7,
478478
NVME_ID_NS_NVM_GUARD_MASK = 0x3,
479479
};

0 commit comments

Comments
 (0)