Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions kernel/cred.c
Original file line number Diff line number Diff line change
Expand Up @@ -472,6 +472,8 @@ int copy_creds(struct task_struct *p, unsigned long clone_flags)
iee_init_copied_cred(p, get_cred(new));
else
p->cred = p->real_cred = get_cred(new);
#else
Copy link

Copilot AI Aug 7, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The #else block lacks a comment explaining the condition it handles. Consider adding a comment like '/* CONFIG_CREDP is not enabled */' to improve code readability and match the documentation style of the surrounding code.

Suggested change
#else
#else /* CONFIG_CREDP is not enabled */

Copilot uses AI. Check for mistakes.
p->cred = p->real_cred = get_cred(new);
#endif
inc_rlimit_ucounts(task_ucounts(p), UCOUNT_RLIMIT_NPROC, 1);
return 0;
Expand Down
Loading