Commit 14481842 authored by Dongsheng Yang's avatar Dongsheng Yang Committed by Ingo Molnar
Browse files
parent c4a4d2f4
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -3225,7 +3225,7 @@ static ssize_t wq_nice_store(struct device *dev, struct device_attribute *attr,
		return -ENOMEM;

	if (sscanf(buf, "%d", &attrs->nice) == 1 &&
	    attrs->nice >= -20 && attrs->nice <= 19)
	    attrs->nice >= MIN_NICE && attrs->nice <= MAX_NICE)
		ret = apply_workqueue_attrs(wq, attrs);
	else
		ret = -EINVAL;