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

x86/amd_gart: fix unmapping of non-GART mappings



In many cases we don't have to create a GART mapping at all, which
also means there is nothing to unmap.  Fix the range check that was
incorrectly modified when removing the mapping_error method.

Fixes: 9e8aa6b5 ("x86/amd_gart: remove the mapping_error dma_map_ops method")
Reported-by: default avatarMichal Kubecek <mkubecek@suse.cz>
Signed-off-by: default avatarChristoph Hellwig <hch@lst.de>
Tested-by: default avatarMichal Kubecek <mkubecek@suse.cz>
parent 48e638fb
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