From: Greg Kroah-Hartman Date: Mon, 15 Nov 2010 19:15:11 +0000 (-0800) Subject: USB: ehci: fix debugfs 'lpm' permissions X-Git-Tag: upstream/snapshot3+hdmi~12404^2~10 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=723b991a62d94f74c9f19abd3da6e937288eb969;p=platform%2Fadaptation%2Frenesas_rcar%2Frenesas_kernel.git USB: ehci: fix debugfs 'lpm' permissions The permissions for the lpm debugfs file is incorrect, this fixes it. Reported-by: Linus Torvalds Cc: Alek Du Cc: Jacob Pan Cc: David Brownell Cc: Alan Stern Cc: stable Signed-off-by: Greg Kroah-Hartman --- diff --git a/drivers/usb/host/ehci-dbg.c b/drivers/usb/host/ehci-dbg.c index 86afdc7..6e25996 100644 --- a/drivers/usb/host/ehci-dbg.c +++ b/drivers/usb/host/ehci-dbg.c @@ -1067,7 +1067,7 @@ static inline void create_debug_files (struct ehci_hcd *ehci) &debug_registers_fops)) goto file_error; - if (!debugfs_create_file("lpm", S_IRUGO|S_IWUGO, ehci->debug_dir, bus, + if (!debugfs_create_file("lpm", S_IRUGO|S_IWUSR, ehci->debug_dir, bus, &debug_lpm_fops)) goto file_error;