Unverified Commit 8fdcce9d authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!14667 sched: fix warning in sched_setaffinity

parents d29f3cb0 a3003b97
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -8417,7 +8417,7 @@ __sched_setaffinity(struct task_struct *p, struct affinity_context *ctx)
			bool empty = !cpumask_and(new_mask, new_mask,
						  ctx->user_mask);

			if (WARN_ON_ONCE(empty))
			if (empty)
				cpumask_copy(new_mask, cpus_allowed);
		}
		__set_cpus_allowed_ptr(p, ctx);