|
@@ -222,6 +222,7 @@ SYSCALL_DEFINE2(getpriority, int, which, int, who)
|
|
if (which > PRIO_USER || which < PRIO_PROCESS)
|
|
if (which > PRIO_USER || which < PRIO_PROCESS)
|
|
return -EINVAL;
|
|
return -EINVAL;
|
|
|
|
|
|
|
|
+ rcu_read_lock();
|
|
read_lock(&tasklist_lock);
|
|
read_lock(&tasklist_lock);
|
|
switch (which) {
|
|
switch (which) {
|
|
case PRIO_PROCESS:
|
|
case PRIO_PROCESS:
|
|
@@ -267,6 +268,7 @@ SYSCALL_DEFINE2(getpriority, int, which, int, who)
|
|
}
|
|
}
|
|
out_unlock:
|
|
out_unlock:
|
|
read_unlock(&tasklist_lock);
|
|
read_unlock(&tasklist_lock);
|
|
|
|
+ rcu_read_unlock();
|
|
|
|
|
|
return retval;
|
|
return retval;
|
|
}
|
|
}
|