aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorDonald Robson <[email protected]>2023-12-13 14:44:31 +0000
committerMaxime Ripard <[email protected]>2023-12-15 14:04:21 +0100
commit8a53e29fe05c56f643eaab285f224c09b9c3dd4c (patch)
tree1c544f78b00f29a08567e6c0f6eae7f6621f2d8d /scripts/generate_rust_analyzer.py
parentf175498378bdae2ebcf61170a2a866cb96e8a69a (diff)
drm/imagination: Fix error path in pvr_vm_create_context
It is possible to double free the vm_ctx->mmu_ctx object in this function.     630 err_page_table_destroy: --> 631         pvr_mmu_context_destroy(vm_ctx->mmu_ctx); The pvr_vm_context_put() function does:         kref_put(&vm_ctx->ref_count, pvr_vm_context_release); Here the pvr_vm_context_release() will call:         pvr_mmu_context_destroy(vm_ctx->mmu_ctx); Refactor to an unwind style. Reported-by: Dan Carpenter <[email protected]> Signed-off-by: Donald Robson <[email protected]> Reviewed-by: Dan Carpenter <[email protected]> Signed-off-by: Maxime Ripard <[email protected]> Link: https://patchwork.freedesktop.org/patch/msgid/[email protected]
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions