diff options
author | Connor O'Brien <connoro@google.com> | 2018-03-20 16:01:43 -0700 |
---|---|---|
committer | Connor O'Brien <connoro@google.com> | 2018-03-21 18:08:20 +0000 |
commit | 4b5b4ff4a687fd25ad6b788678a8af8014b24c66 (patch) | |
tree | 1963789f65f940a67992a0e3d835a06a08b0da25 /kernel/sched/core.c | |
parent | eacdfbad3ba8a2602a33174452440570639405f1 (diff) |
ANDROID: cpufreq: times: avoid prematurely freeing uid_entry
__krealloc may return the same pointer that's passed in if the
original allocation provided enough memory to accommodate the new
request. In this case the "old" uid_entry should not be freed or
replaced in uid_hash_table, so add a check to avoid doing so.
Bug: 74338318
Test: Hikey960 boots & shows reasonable UID numbers
Change-Id: Id1a094f60a8ffcc827358d0f40c9f3ff70719cce
Signed-off-by: Connor O'Brien <connoro@google.com>
Diffstat (limited to 'kernel/sched/core.c')
0 files changed, 0 insertions, 0 deletions