]> Projects (at) Tadryanom (dot) Me - AdrOS.git/commitdiff
vfs: initialize refcount=0 for new mount entries to prevent inheriting stale values...
authorTulio A M Mendes <[email protected]>
Mon, 25 May 2026 20:45:08 +0000 (17:45 -0300)
committerTulio A M Mendes <[email protected]>
Wed, 3 Jun 2026 04:02:35 +0000 (01:02 -0300)
src/kernel/fs.c

index 57abed424e3f77cb9e96e370cb1f6a77eb040ded..950c0928f02cf3919f27831881ca22eee3591f74 100644 (file)
@@ -131,6 +131,7 @@ int vfs_mount_nolock_full(const char* mountpoint, fs_node_t* root,
     g_mounts[g_mount_count].flags = flags;
     g_mounts[g_mount_count].bdev = bdev;
     g_mounts[g_mount_count].sb = sb;
+    g_mounts[g_mount_count].refcount = 0;
     g_mount_count++;
     return 0;
 }