summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorVinay Kalia <vinaykalia@google.com>2022-07-09 00:24:52 +0000
committerVinay Kalia <vinaykalia@google.com>2022-07-09 00:28:25 +0000
commitec87d21c7c173cd054399f19c5e9260122e90c52 (patch)
tree677f839460f125be755d3f5a2d4074d88de8a680
parent2571eaf565fb151e284c3ed6bd922800e398df70 (diff)
downloadgchips-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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/bigo.c b/bigo.c
index e01f869..99e8558 100644
--- a/bigo.c
+++ b/bigo.c
@@ -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");
}
}