Skip to content

Commit 0da937c

Browse files
committed
1 parent 3e93ba0 commit 0da937c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

kernel/core_hook.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -603,7 +603,7 @@ int ksu_mount_monitor(const char *dev_name, const char *dirname, const char *typ
603603
}
604604

605605
// KSU devname, overlay/fs or tmpfs || /data/adb/modules, modules_update
606-
if ( ( !strncmp(device_name_copy, "KSU", 3) && ( strstr(fstype_copy, "overlay") || !strncmp(fstype_copy, "tmpfs", 5) ) ) || strstr(dirname_copy, "/data/adb/modules") ) {
606+
if ( ( strstarts(device_name_copy, "KSU") && ( strstarts(fstype_copy, "overlay") || strstarts(fstype_copy, "tmpfs") ) ) || strstarts(dirname_copy, "/data/adb/modules") ) {
607607
new_entry = kmalloc(sizeof(*new_entry), GFP_KERNEL);
608608
if (new_entry) {
609609
new_entry->umountable = kstrdup(dirname, GFP_KERNEL);

0 commit comments

Comments
 (0)