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

Message ID 1512626203-6131-1-git-send-email-changbin.du@intel.com
State New
Headers show

Commit Message

Du, Changbin Dec. 7, 2017, 5:56 a.m. UTC
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(-)

Comments

Chris Wilson Dec. 7, 2017, 7:23 p.m. UTC | #1
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 mbox

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;
 	}