]> www.infradead.org Git - users/willy/xarray.git/commit
xen/swiotlb: fix allocated size
authorJuergen Gross <jgross@suse.com>
Sun, 15 Sep 2024 11:06:44 +0000 (13:06 +0200)
committerJuergen Gross <jgross@suse.com>
Tue, 17 Sep 2024 06:53:17 +0000 (08:53 +0200)
commitc3dea3d54f4d399f8044547f0f1abdccbdfb0fee
tree8905d824339286f53af722f54e0e575f8c640ae2
parent9f40ec84a7976d95c34e7cc070939deb103652b0
xen/swiotlb: fix allocated size

The allocated size in xen_swiotlb_alloc_coherent() and
xen_swiotlb_free_coherent() is calculated wrong for the case of
XEN_PAGE_SIZE not matching PAGE_SIZE. Fix that.

Fixes: 7250f422da04 ("xen-swiotlb: use actually allocated size on check physical continuous")
Reported-by: Jan Beulich <jbeulich@suse.com>
Signed-off-by: Juergen Gross <jgross@suse.com>
Reviewed-by: Jan Beulich <jbeulich@suse.com>
Reviewed-by: Stefano Stabellini <sstabellini@kernel.org>
Signed-off-by: Juergen Gross <jgross@suse.com>
drivers/xen/swiotlb-xen.c