Unverified Commit 27467fc2 authored by openeuler-ci-bot's avatar openeuler-ci-bot Committed by Gitee
Browse files

!7206 v2 sched: programmable: Allow set tag for pid 1.

parents 15bef328 147c56db
Loading
Loading
Loading
Loading
+0 −5
Original line number Diff line number Diff line
@@ -3773,11 +3773,6 @@ static ssize_t pid_tag_write(struct file *file, const char __user *buf,
	if (!tsk)
		return -ESRCH;

	if (unlikely(tsk->pid == 1)) {
		err = -EPERM;
		goto out;
	}

	err = kstrtol_from_user(buf, count, 0, &tag);
	if (err)
		goto out;