diff options
author | Vinay Kalia <vinaykalia@google.com> | 2022-07-09 00:24:52 +0000 |
---|---|---|
committer | Vinay Kalia <vinaykalia@google.com> | 2022-07-09 00:28:25 +0000 |
commit | ec87d21c7c173cd054399f19c5e9260122e90c52 (patch) | |
tree | 677f839460f125be755d3f5a2d4074d88de8a680 | |
parent | 2571eaf565fb151e284c3ed6bd922800e398df70 (diff) | |
download | gchips-ec87d21c7c173cd054399f19c5e9260122e90c52.tar.gz |
bigocean: Fix use after freeandroid-13.0.0_r0.31
"inst" should not be dereferenced after it has been freed.
bug: 238462767
Signed-off-by: Vinay Kalia <vinaykalia@google.com>
Change-Id: Ifd5c165ea285d01878563ff21de452e5b523a7df
-rw-r--r-- | bigo.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -193,9 +193,9 @@ static void bigo_close(struct kref *ref) if (inst && inst->core) { clear_job_from_prioq(inst->core, inst); bigo_unmap_all(inst); + bigo_update_qos(inst->core); kfree(inst->job.regs); kfree(inst); - bigo_update_qos(inst->core); pr_info("closed instance\n"); } } |