diff options
author | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-01-07 21:25:55 +0300 |
---|---|---|
committer | Matthew Wilcox (Oracle) <willy@infradead.org> | 2022-03-21 19:56:35 +0300 |
commit | c228afb11ac6938532703ac712992524497aff29 (patch) | |
tree | 2bf4703ab380845339879cd50456e62d8964ed6a /net/xdp | |
parent | 28297dbcad7ed3d7bac373eef121339cb0cac326 (diff) | |
download | linux-c228afb11ac6938532703ac712992524497aff29.tar.xz |
mm/gup: Fix some contiguous memmap assumptions
Several functions in gup.c assume that a compound page has virtually
contiguous page structs. This isn't true for SPARSEMEM configs unless
SPARSEMEM_VMEMMAP is also set. Fix them by using nth_page() instead of
plain pointer arithmetic.
Signed-off-by: Matthew Wilcox (Oracle) <willy@infradead.org>
Reviewed-by: Christoph Hellwig <hch@lst.de>
Reviewed-by: John Hubbard <jhubbard@nvidia.com>
Reviewed-by: Jason Gunthorpe <jgg@nvidia.com>
Reviewed-by: William Kucharski <william.kucharski@oracle.com>
Diffstat (limited to 'net/xdp')
0 files changed, 0 insertions, 0 deletions