Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib/dma-debug.c: fix __hash_bucket_find()
If there is only one match, the unique matched entry should be returned. Without the fix, the upcoming dma debug interfaces ("dma-debug: new interfaces to debug dma mapping errors") can't work reliably because only device and dma_addr are passed to dma_mapping_error(). Signed-off-by: Ming Lei <[email protected]> Reported-by: Wu Fengguang <[email protected]> Cc: Joerg Roedel <[email protected]> Tested-by: Shuah Khan <[email protected]> Cc: Paul Gortmaker <[email protected]> Cc: Jakub Kicinski <[email protected]> Signed-off-by: Andrew Morton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
- Loading branch information