ANDROID: virt: gunyah: Remove unbalanced folio_get
Page/folio pinning is handled directly by GUP. A lingering folio_get()
from guest_memfd upstream implementation was incorrectly preserved.
Remove it and fix the corresponding page leak.
Fixes: 296cceed0844 ("ANDROID: virt: gunyah: Add gup based demand paging support")
Change-Id: I874cf9e07cf7bad20931071b0fc33e3b9c55ad8d
Signed-off-by: Elliot Berman <quic_eberman@quicinc.com>
Signed-off-by: Elliot Berman <elliot.berman@oss.qualcomm.com>
This commit is contained in:
committed by
Treehugger Robot
parent
5a49551a6f
commit
84703ee7ec
@@ -193,7 +193,6 @@ int gunyah_vm_provide_folio(struct gunyah_vm *ghvm, struct folio *folio,
|
||||
goto memextent_reclaim;
|
||||
}
|
||||
|
||||
folio_get(folio);
|
||||
return 0;
|
||||
memextent_reclaim:
|
||||
gunyah_error = gunyah_hypercall_memextent_donate(
|
||||
|
||||
Reference in New Issue
Block a user