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
6 From: Greg Kroah-Hartman <gregkh@suse.de>
8 commit 723b991a62d94f74c9f19abd3da6e937288eb969 upstream.
10 The permissions for the lpm debugfs file is incorrect, this fixes it.
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>
20 drivers/usb/host/ehci-dbg.c | 2 +-
21 1 file changed, 1 insertion(+), 1 deletion(-)
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))
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,