ANDROID: virt: gunyah: Correct the nr outval in gunyah_gup_share_parcel
gunyah_gup_share_parcel() has an in/out parameter which indicates the number of pages requested to be shared in the mem parcel. We were not returning the number of pages actually shared in the mem parcel and this caused THPs to be undercounted. Later, when converting the parcel to demand paged (gunyah_vm_parcel_to_paged), we hit the BUG_ON on line 55 due to the undercount. Fix the BUG_ON by correctly counting the *nr return value. Bug: 367452992 Bug: 371019111 Fixes: due to the undercount. Fix the BUG_ON by correctly counting the *nr return value due to the undercount. Fix the BUG_ON by correctly counting the *nr return value. Fixes: 296cceed ("ANDROID: virt: gunyah: Add gup based demand paging support") Change-Id: I6492b02d075d903ab68d6c89c4bb1cd78af25c28 Signed-off-by:Elliot Berman <quic_eberman@quicinc.com> (cherry picked from commit 4284beb7)
Loading
Please sign in to comment