summaryrefslogtreecommitdiffstats
path: root/drivers/s390/cio
diff options
context:
space:
mode:
authorSebastian Ott <sebott@linux.ibm.com>2018-12-03 13:19:12 +0100
committerMartin Schwidefsky <schwidefsky@de.ibm.com>2018-12-13 10:42:24 +0100
commit87ccdcfa9c706be835fea226eda0b1ae9c671413 (patch)
tree46f4a68e1886b9bc19003b0f3ebf34e474dc772b /drivers/s390/cio
parents390: convert to DEFINE_SHOW_ATTRIBUTE (diff)
downloadlinux-87ccdcfa9c706be835fea226eda0b1ae9c671413.tar.xz
linux-87ccdcfa9c706be835fea226eda0b1ae9c671413.zip
s390/drivers: fix proc/debugfs file permissions
Remove write permissions for fops without a write callback. Signed-off-by: Sebastian Ott <sebott@linux.ibm.com> Signed-off-by: Martin Schwidefsky <schwidefsky@de.ibm.com>
Diffstat (limited to 'drivers/s390/cio')
-rw-r--r--drivers/s390/cio/qdio_debug.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/s390/cio/qdio_debug.c b/drivers/s390/cio/qdio_debug.c
index 040061f2bfff..d2f98e5829d4 100644
--- a/drivers/s390/cio/qdio_debug.c
+++ b/drivers/s390/cio/qdio_debug.c
@@ -293,7 +293,7 @@ static void setup_debugfs_entry(struct qdio_q *q)
snprintf(name, QDIO_DEBUGFS_NAME_LEN, "%s_%d",
q->is_input_q ? "input" : "output",
q->nr);
- q->debugfs_q = debugfs_create_file(name, S_IFREG | S_IRUGO | S_IWUSR,
+ q->debugfs_q = debugfs_create_file(name, 0444,
q->irq_ptr->debugfs_dev, q, &qstat_fops);
if (IS_ERR(q->debugfs_q))
q->debugfs_q = NULL;