This is an automatic generated email to let you know that the following patch 
were queued:

Subject: media: coda: set debugfs blobs to read only
Author:  Wolfram Sang <[email protected]>
Date:    Tue May 4 14:26:48 2021 +0200

Those blobs can only be read. So, don't confuse users with 'writable'
flags.

Signed-off-by: Wolfram Sang <[email protected]>
Signed-off-by: Hans Verkuil <[email protected]>
Signed-off-by: Mauro Carvalho Chehab <[email protected]>

 drivers/media/platform/coda/coda-common.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

---

diff --git a/drivers/media/platform/coda/coda-common.c 
b/drivers/media/platform/coda/coda-common.c
index 2017de85713e..0e312b0842d7 100644
--- a/drivers/media/platform/coda/coda-common.c
+++ b/drivers/media/platform/coda/coda-common.c
@@ -1935,7 +1935,7 @@ int coda_alloc_aux_buf(struct coda_dev *dev, struct 
coda_aux_buf *buf,
        if (name && parent) {
                buf->blob.data = buf->vaddr;
                buf->blob.size = size;
-               buf->dentry = debugfs_create_blob(name, 0644, parent,
+               buf->dentry = debugfs_create_blob(name, 0444, parent,
                                                  &buf->blob);
        }
 
@@ -3233,7 +3233,7 @@ static int coda_probe(struct platform_device *pdev)
                memset(dev->iram.vaddr, 0, dev->iram.size);
                dev->iram.blob.data = dev->iram.vaddr;
                dev->iram.blob.size = dev->iram.size;
-               dev->iram.dentry = debugfs_create_blob("iram", 0644,
+               dev->iram.dentry = debugfs_create_blob("iram", 0444,
                                                       dev->debugfs_root,
                                                       &dev->iram.blob);
        }

_______________________________________________
linuxtv-commits mailing list
[email protected]
https://www.linuxtv.org/cgi-bin/mailman/listinfo/linuxtv-commits

Reply via email to