Develop and Download Open Source Software

Browse Subversion Repository

Diff of /trunk/caitsith-patch/caitsith/realpath.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 385 by kumaneko, Sat May 27 06:14:44 2023 UTC revision 386 by kumaneko, Mon Nov 13 11:36:37 2023 UTC
# Line 645  char *cs_get_exe(void) Line 645  char *cs_get_exe(void)
645          /* Not using get_mm_exe_file() as it is not exported. */          /* Not using get_mm_exe_file() as it is not exported. */
646          rcu_read_lock();          rcu_read_lock();
647          exe_file = rcu_dereference(mm->exe_file);          exe_file = rcu_dereference(mm->exe_file);
648    #if LINUX_VERSION_CODE >= KERNEL_VERSION(6, 7, 0)
649            if (exe_file && !get_file_rcu(&exe_file))
650                    exe_file = NULL;
651    #else
652          if (exe_file && !get_file_rcu(exe_file))          if (exe_file && !get_file_rcu(exe_file))
653                  exe_file = NULL;                  exe_file = NULL;
654    #endif
655          rcu_read_unlock();          rcu_read_unlock();
656  #elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0)  #elif LINUX_VERSION_CODE >= KERNEL_VERSION(4, 1, 0)
657          exe_file = get_mm_exe_file(mm);          exe_file = get_mm_exe_file(mm);

Legend:
Removed from v.385  
changed lines
  Added in v.386

Back to OSDN">Back to OSDN
ViewVC Help
Powered by ViewVC 1.1.26