Patchwork [i-g-t] overlay: fix debugfs path when debugfs mounted on path '/debug'

login
register
mail settings
Submitter Du, Changbin
Date Dec. 7, 2017, 5:56 a.m.
Message ID <1512626203-6131-1-git-send-email-changbin.du@intel.com>
Download mbox | patch
Permalink /patch/10097709/
State New
Headers show

Comments

Du, Changbin - Dec. 7, 2017, 5:56 a.m.
From: Changbin Du <changbin.du@intel.com>

It mistakenly set debugfs root path to "/debug/dri", so correct it.

Signed-off-by: Changbin Du <changbin.du@intel.com>
---
 overlay/debugfs.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
Chris Wilson - Dec. 7, 2017, 7:23 p.m.
Quoting changbin.du@intel.com (2017-12-07 05:56:43)
> From: Changbin Du <changbin.du@intel.com>
> 
> It mistakenly set debugfs root path to "/debug/dri", so correct it.
> 
> Signed-off-by: Changbin Du <changbin.du@intel.com>
Reviewed-by: Chris Wilson <chris@chris-wilson.co.uk>
-Chris

Patch

diff --git a/overlay/debugfs.c b/overlay/debugfs.c
index 9f3e5cc..5516949 100644
--- a/overlay/debugfs.c
+++ b/overlay/debugfs.c
@@ -40,7 +40,7 @@  int debugfs_init(void)
 	int n;
 
 	if (stat("/debug/dri", &st) == 0) {
-		path = "/debug/dri";
+		path = "/debug";
 		goto find_minor;
 	}