Skip to content
Commit e15db62b authored by Christoph Hellwig's avatar Christoph Hellwig
Browse files

swiotlb: fix setting ->force_bounce

The swiotlb_init refactor messed up assigning ->force_bounce by doing
it in different places based on what caused the setting of the flag.

Fix this by passing the SWIOTLB_* flags to swiotlb_init_io_tlb_mem
and just setting it there.

Fixes: c6af2aa9

 ("swiotlb: make the swiotlb_init interface more useful")
Reported-by: default avatarNathan Chancellor <nathan@kernel.org>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Tested-by: default avatarNathan Chancellor <nathan@kernel.org>
parent e19f8fa6
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment