commit | 2bdba622c351259317b0294c6e9fe243b2404316 | [log] [tgz] |
---|---|---|
author | Christoph Hellwig <hch@lst.de> | Mon Mar 01 08:44:25 2021 +0100 |
committer | Konrad Rzeszutek Wilk <konrad.wilk@oracle.com> | Wed Mar 17 00:29:41 2021 +0000 |
tree | b779ee4e5763d820f86572f09280bc2492d07b42 | |
parent | 2973073a80b46daebc352c31d09d95d16cf6876e [diff] |
swiotlb: move orig addr and size validation into swiotlb_bounce Move the code to find and validate the original buffer address and size from the callers into swiotlb_bounce. This means a tiny bit of extra work in the swiotlb_map path, but avoids code duplication and a leads to a better code structure. Signed-off-by: Christoph Hellwig <hch@lst.de> Signed-off-by: Konrad Rzeszutek Wilk <konrad.wilk@oracle.com>