kernel: By default, MNT_DETACH is used as the value for the mount point.

This commit is contained in:
ShirkNeko
2025-11-07 13:37:09 +08:00
parent 4769065cfc
commit 03a164ebb7
3 changed files with 10 additions and 3 deletions

View File

@@ -109,6 +109,9 @@ int ksu_umount_manager_add(const char *path, bool check_mnt, int flags, bool is_
unsigned long irqflags;
int ret = 0;
if (flags == -1)
flags = MNT_DETACH;
if (!path || strlen(path) == 0 || strlen(path) >= 256) {
return -EINVAL;
}