]> git.ipfire.org Git - thirdparty/kernel/stable-queue.git/blob - releases/2.6.36.2/usb-ehci-fix-debugfs-lpm-permissions.patch
Fixes for 5.10
[thirdparty/kernel/stable-queue.git] / releases / 2.6.36.2 / usb-ehci-fix-debugfs-lpm-permissions.patch
1 From 723b991a62d94f74c9f19abd3da6e937288eb969 Mon Sep 17 00:00:00 2001
2 From: Greg Kroah-Hartman <gregkh@suse.de>
3 Date: Mon, 15 Nov 2010 11:15:11 -0800
4 Subject: USB: ehci: fix debugfs 'lpm' permissions
5
6 From: Greg Kroah-Hartman <gregkh@suse.de>
7
8 commit 723b991a62d94f74c9f19abd3da6e937288eb969 upstream.
9
10 The permissions for the lpm debugfs file is incorrect, this fixes it.
11
12 Reported-by: Linus Torvalds <torvalds@linux-foundation.org>
13 Cc: Alek Du <alek.du@intel.com>
14 Cc: Jacob Pan <jacob.jun.pan@intel.com>
15 Cc: David Brownell <dbrownell@users.sourceforge.net>
16 Cc: Alan Stern <stern@rowland.harvard.edu>
17 Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
18
19 ---
20 drivers/usb/host/ehci-dbg.c | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
22
23 --- a/drivers/usb/host/ehci-dbg.c
24 +++ b/drivers/usb/host/ehci-dbg.c
25 @@ -1063,7 +1063,7 @@ static inline void create_debug_files (s
26 &debug_registers_fops))
27 goto file_error;
28
29 - if (!debugfs_create_file("lpm", S_IRUGO|S_IWUGO, ehci->debug_dir, bus,
30 + if (!debugfs_create_file("lpm", S_IRUGO|S_IWUSR, ehci->debug_dir, bus,
31 &debug_lpm_fops))
32 goto file_error;
33