aboutsummaryrefslogtreecommitdiff
path: root/scripts/generate_rust_analyzer.py
diff options
context:
space:
mode:
authorOleksandr Tyshchenko <[email protected]>2024-01-07 12:34:26 +0200
committerJuergen Gross <[email protected]>2024-01-10 07:32:40 +0100
commit2d2db7d40254d5fb53b11ebd703cd1ed0c5de7a1 (patch)
tree5a150a56d66073cc7a291e7e772ae92c6a972353 /scripts/generate_rust_analyzer.py
parentf1479f0a4f53ef4fc12108a59caee61c39bc6843 (diff)
xen/gntdev: Fix the abuse of underlying struct page in DMA-buf import
DO NOT access the underlying struct page of an sg table exported by DMA-buf in dmabuf_imp_to_refs(), this is not allowed. Please see drivers/dma-buf/dma-buf.c:mangle_sg_table() for details. Fortunately, here (for special Xen device) we can avoid using pages and calculate gfns directly from dma addresses provided by the sg table. Suggested-by: Daniel Vetter <[email protected]> Signed-off-by: Oleksandr Tyshchenko <[email protected]> Acked-by: Christian König <[email protected]> Reviewed-by: Stefano Stabellini <[email protected]> Acked-by: Daniel Vetter <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Juergen Gross <[email protected]>
Diffstat (limited to 'scripts/generate_rust_analyzer.py')
0 files changed, 0 insertions, 0 deletions