diff --git a/drivers/nvme/host/core.c b/drivers/nvme/host/core.c index d512855393851b31f26f8f8954e5a241b0773d25..36558dfe6f65433fd3ad7b45428201eb9e525df9 100644 --- a/drivers/nvme/host/core.c +++ b/drivers/nvme/host/core.c @@ -3157,6 +3157,8 @@ static umode_t nvme_dev_attrs_are_visible(struct kobject *kobj, return 0; if (a == &dev_attr_address.attr && !ctrl->ops->get_address) return 0; + if (a == &dev_attr_fast_io_fail_tmo.attr && !ctrl->opts) + return 0; return a->mode; }