aboutsummaryrefslogtreecommitdiffstatshomepage
path: root/drivers/xen/swiotlb-xen.c
diff options
context:
space:
mode:
authorPetr Tesarik <petr.tesarik.ext@huawei.com>2023-08-01 08:23:56 +0200
committerChristoph Hellwig <hch@lst.de>2023-08-01 18:02:02 +0200
commit0c6874a6ac0474b54c8d1ba33e243ec578ff815a (patch)
treed3de8f2e381871d8b58bf7b56ac0bdb24b23cff3 /drivers/xen/swiotlb-xen.c
parentdma-contiguous: check for memory region overlap (diff)
downloadwireguard-linux-0c6874a6ac0474b54c8d1ba33e243ec578ff815a.tar.xz
wireguard-linux-0c6874a6ac0474b54c8d1ba33e243ec578ff815a.zip
swiotlb: bail out of swiotlb_init_late() if swiotlb is already allocated
If swiotlb is allocated, immediately return 0, so callers do not have to check io_tlb_default_mem.nslabs explicitly. Signed-off-by: Petr Tesarik <petr.tesarik.ext@huawei.com> Signed-off-by: Christoph Hellwig <hch@lst.de>
Diffstat (limited to 'drivers/xen/swiotlb-xen.c')
0 files changed, 0 insertions, 0 deletions