From: Alistair Francis Date: Tue, 2 Dec 2025 05:17:54 +0000 (+1000) Subject: nvme: Expose the tls_configured sysfs for secure concat connections X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=56d25f1a6e312e36ee07c605c4102e0848245381;p=thirdparty%2Fkernel%2Flinux.git nvme: Expose the tls_configured sysfs for secure concat connections Signed-off-by: Alistair Francis Reviewed-by: Christoph Hellwig Reviewed-by: Hannes Reinecke Reviewed-by: Wilfred Mallawa Reviewed-by: Sagi Grimberg Signed-off-by: Keith Busch --- diff --git a/drivers/nvme/host/sysfs.c b/drivers/nvme/host/sysfs.c index 45422d4274de4..7a4b0924c3a21 100644 --- a/drivers/nvme/host/sysfs.c +++ b/drivers/nvme/host/sysfs.c @@ -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)