]> git.ipfire.org Git - thirdparty/kernel/linux.git/commitdiff
nvme: Expose the tls_configured sysfs for secure concat connections
authorAlistair Francis <alistair.francis@wdc.com>
Tue, 2 Dec 2025 05:17:54 +0000 (15:17 +1000)
committerKeith Busch <kbusch@kernel.org>
Fri, 27 Mar 2026 14:35:03 +0000 (07:35 -0700)
Signed-off-by: Alistair Francis <alistair.francis@wdc.com>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: Hannes Reinecke <hare@suse.de>
Reviewed-by: Wilfred Mallawa <wilfred.mallawa@wdc.com>
Reviewed-by: Sagi Grimberg <sagi@grimberg.me>
Signed-off-by: Keith Busch <kbusch@kernel.org>
drivers/nvme/host/sysfs.c

index 45422d4274de4e84b58a72ff98ec33075f86b883..7a4b0924c3a21e7cd2e27d303c4d6b61a6146e3f 100644 (file)
@@ -861,7 +861,7 @@ static umode_t nvme_tls_attrs_are_visible(struct kobject *kobj,
            !ctrl->opts->tls && !ctrl->opts->concat)
                return 0;
        if (a == &dev_attr_tls_configured_key.attr &&
-           (!ctrl->opts->tls_key || ctrl->opts->concat))
+           !ctrl->opts->concat)
                return 0;
        if (a == &dev_attr_tls_keyring.attr &&
            !ctrl->opts->keyring)