Skip to content
Snippets Groups Projects
Commit 9433885a authored by Jordan Crouse's avatar Jordan Crouse Committed by Nick Desaulniers
Browse files

msm: kgsl: Fix pagetable member of struct kgsl_memdesc


memdesc->pagetable is supposed to help ensure that memory gets
unmapped before it is freed, but the pagetable member is being
populated at create time not when the buffer gets mapped. This
forces the developer to ensure that the same pagetable is
used for both the create and map step. Instead, assign the
pagetable member when it is first used (to get a GPU address)
and put it away when the GPU address is released.

Bug: 36252171
Change-Id: Ic0dedbad372fd9029b932dd99633a650049751ed
Signed-off-by: default avatarJordan Crouse <jcrouse@codeaurora.org>
Signed-off-by: default avatarSudeep Yedalapure <sudeepy@codeaurora.org>
parent cfab942c
No related branches found
No related tags found
No related merge requests found
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment