mirror of
https://github.com/BobTheBlinker/android_kernel_motorola_sm6375.git
synced 2026-10-29 19:21:31 -04:00
security: tomoyo: Fix obsolete function
simple_strtoul is obsolete, and use kstrtouint instead Signed-off-by: Ding Xiang <[email protected]> Acked-by: Tetsuo Handa <[email protected]> Signed-off-by: James Morris <[email protected]>
This commit is contained in:
parent
e42f6f9be4
commit
dbdb75bd08
1 changed files with 2 additions and 1 deletions
|
|
@ -1660,7 +1660,8 @@ static void tomoyo_read_pid(struct tomoyo_io_buffer *head)
|
|||
head->r.eof = true;
|
||||
if (tomoyo_str_starts(&buf, "global-pid "))
|
||||
global_pid = true;
|
||||
pid = (unsigned int) simple_strtoul(buf, NULL, 10);
|
||||
if (kstrtouint(buf, 10, &pid))
|
||||
return;
|
||||
rcu_read_lock();
|
||||
if (global_pid)
|
||||
p = find_task_by_pid_ns(pid, &init_pid_ns);
|
||||
|
|
|
|||
Loading…
Reference in a new issue