diff options
author | Joerg Roedel <[email protected]> | 2009-06-05 12:01:35 +0200 |
---|---|---|
committer | Ingo Molnar <[email protected]> | 2009-06-07 10:04:53 +0200 |
commit | 7caf6a49bb17d0377210693af5737563b31aa5ee (patch) | |
tree | 1a61bc90002bc2e3d1fc5d028e408b35fb765cbd /net/lapb/lapb_iface.c | |
parent | fe2245c905631a3a353504fc04388ce3dfaf9d9e (diff) |
dma-debug: change hash_bucket_find from first-fit to best-fit
Some device drivers map the same physical address multiple times to a
dma address. Without an IOMMU this results in the same dma address being
put into the dma-debug hash multiple times. With a first-fit match in
hash_bucket_find() this function may return the wrong dma_debug_entry.
This can result in false positive warnings. This patch fixes it by
changing the first-fit behavior of hash_bucket_find() into a best-fit
algorithm.
Reported-by: Torsten Kaiser <[email protected]>
Reported-by: FUJITA Tomonori <[email protected]>
Signed-off-by: Joerg Roedel <[email protected]>
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: [email protected]
Cc: FUJITA Tomonori <[email protected]>
Cc: Linus Torvalds <[email protected]>
Cc: <[email protected]>
LKML-Reference: <[email protected]>
Signed-off-by: Ingo Molnar <[email protected]>
Diffstat (limited to 'net/lapb/lapb_iface.c')
0 files changed, 0 insertions, 0 deletions