refactor: make pci device driver loading passive, pci bus scanner will not load them...
[lunaix-os.git] / lunaix-os / kernel / fs / path_walk.c
index d376c798b778660328f07951257c6acfd9c537cd..e1b11578145ed1f47d1ddd12cdf7246cf8207247 100644 (file)
@@ -173,6 +173,11 @@ vfs_walk(struct v_dnode* start,
          struct hstr* component,
          int options)
 {
+    if (!path) {
+        *dentry = NULL;
+        return 0;
+    }
+
     // allocate a file name stack for path walking and recursion to resolve
     // symlink
     char* name_buffer = valloc(2048);