diff --git a/security/landlock/fs.c b/security/landlock/fs.c index 4ed997f4a663..a18d53507210 100644 --- a/security/landlock/fs.c +++ b/security/landlock/fs.c @@ -1484,7 +1484,6 @@ static void hook_sb_delete(struct super_block *const sb) * previous loop walk, which is not needed anymore. */ iput(prev_inode); - cond_resched(); spin_lock(&sb->s_inode_list_lock); } prev_inode = inode; diff --git a/kernel/fork.c b/kernel/fork.c index e9a7fb5c3e49..a0b8eeeb1d27 100644 --- a/kernel/fork.c +++ b/kernel/fork.c @@ -2349,7 +2349,7 @@ __latent_entropy struct task_struct *copy_process( if (need_futex_hash_allocate_default(clone_flags)) { retval = futex_hash_allocate_default(); if (retval) - goto bad_fork_core_free; + goto bad_fork_cancel_cgroup; /* * If we fail beyond this point we don't free the allocated * futex hash map. We assume that another thread will be created