Skip to content

Commit a0d0864

Browse files
zevweisssmb49
authored andcommitted
gpio: mockup: Fix mode of debugfs files
BugLink: https://bugs.launchpad.net/bugs/2028979 commit 0a1bb16 upstream. This driver's debugfs files have had a read operation since commit 2a9e274 ("gpio: mockup: rework debugfs interface"), but were still being created with write-only mode bits. Update them to indicate that the files can also be read. Signed-off-by: Zev Weiss <zev@bewilderbeest.net> Fixes: 2a9e274 ("gpio: mockup: rework debugfs interface") Cc: stable@kernel.org # v5.1+ Signed-off-by: Bartosz Golaszewski <bartosz.golaszewski@linaro.org> Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org> Signed-off-by: Kamal Mostafa <kamal@canonical.com> Signed-off-by: Stefan Bader <stefan.bader@canonical.com>
1 parent f9649f6 commit a0d0864

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

drivers/gpio/gpio-mockup.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -369,7 +369,7 @@ static void gpio_mockup_debugfs_setup(struct device *dev,
369369
priv->offset = i;
370370
priv->desc = gpiochip_get_desc(gc, i);
371371

372-
debugfs_create_file(name, 0200, chip->dbg_dir, priv,
372+
debugfs_create_file(name, 0600, chip->dbg_dir, priv,
373373
&gpio_mockup_debugfs_ops);
374374
}
375375
}

0 commit comments

Comments
 (0)