[PATCH OLK-6.6] zcopy: Fix the incorrect mapping size passed in attach_pte_range
hulk inclusion category: feature bugzilla: https://gitee.com/openeuler/release-management/issues/ID3TGE -------------------------------- We passed the wrong parameter; it should not be PMD_SIZE, but rather a variable. Fixes: 0305a09f222b ("zcopy: Introduce the pageattach interface") Signed-off-by: Liu Mingrui <liumingrui@huawei.com> --- drivers/misc/zcopy/zcopy.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/misc/zcopy/zcopy.c b/drivers/misc/zcopy/zcopy.c index 2096a9d9ff26..4b987f740e62 100644 --- a/drivers/misc/zcopy/zcopy.c +++ b/drivers/misc/zcopy/zcopy.c @@ -628,7 +628,7 @@ static int attach_page_range(struct mm_struct *dst_mm, struct mm_struct *src_mm, trace_attach_extent_start(dst_mm, src_mm, dst_addr, src_addr, dst_pmd, src_pmd, extent); ret = attach_pte_range(dst_vma, src_vma, dst_addr, src_addr, dst_pmd, - src_pmd, PMD_SIZE); + src_pmd, extent); trace_attach_extent_end(dst_mm, src_mm, dst_addr, src_addr, dst_pmd, src_pmd, ret); if (ret < 0) -- 2.25.1
反馈: 您发送到kernel@openeuler.org的补丁/补丁集,已成功转换为PR! PR链接地址: https://gitee.com/openeuler/kernel/pulls/19083 邮件列表地址:https://mailweb.openeuler.org/archives/list/kernel@openeuler.org/message/SWR... FeedBack: The patch(es) which you have sent to kernel@openeuler.org mailing list has been converted to a pull request successfully! Pull request link: https://gitee.com/openeuler/kernel/pulls/19083 Mailing list address: https://mailweb.openeuler.org/archives/list/kernel@openeuler.org/message/SWR...
participants (2)
-
Liu Mingrui -
patchwork bot