summaryrefslogtreecommitdiffstats
path: root/drivers/cxl/core
diff options
context:
space:
mode:
authorDan Williams <dan.j.williams@intel.com>2022-01-23 16:29:26 -0800
committerDan Williams <dan.j.williams@intel.com>2022-02-08 22:57:28 -0800
commitc3bca8d4bb3ff77b8784cdc794eb1f8f89b10fb5 (patch)
tree6789b2ff50122eb6bafe60f917119b6dfb208235 /drivers/cxl/core
parent0ff0af18216436d0151af4e410400c7a19ca9437 (diff)
downloadlinux-c3bca8d4bb3ff77b8784cdc794eb1f8f89b10fb5.tar.bz2
cxl/decoder: Hide physical address information from non-root
Just like /proc/iomem, CXL physical address information is reserved for root only. Reviewed-by: Ben Widawsky <ben.widawsky@intel.com> Reviewed-by: Jonathan Cameron <Jonathan.Cameron@huawei.com> Link: https://lore.kernel.org/r/164298416650.3018233.450720006145238709.stgit@dwillia2-desk3.amr.corp.intel.com Signed-off-by: Dan Williams <dan.j.williams@intel.com>
Diffstat (limited to 'drivers/cxl/core')
-rw-r--r--drivers/cxl/core/port.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/cxl/core/port.c b/drivers/cxl/core/port.c
index 3f9b98ecd18b..c5e74c6f04e8 100644
--- a/drivers/cxl/core/port.c
+++ b/drivers/cxl/core/port.c
@@ -49,7 +49,7 @@ static ssize_t start_show(struct device *dev, struct device_attribute *attr,
return sysfs_emit(buf, "%#llx\n", cxld->range.start);
}
-static DEVICE_ATTR_RO(start);
+static DEVICE_ATTR_ADMIN_RO(start);
static ssize_t size_show(struct device *dev, struct device_attribute *attr,
char *buf)