Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
lib/swiotlb.c: Fix strange panic message selection logic when swiotlb…
… fills up swiotlb_full() in lib/swiotlb.c throws one of two panic messages based on whether the direction of transfer is from the device or to the device. The logic around this is somewhat weird in the case of bidirectional transfers. It appears to want to throw both in succession, but since its a panic only the first makes it. This patch adds a third, separate error for DMA_BIDIRECTIONAL to make things a bit clearer. Signed-off-by: Casey Dahlin <[email protected]> Cc: FUJITA Tomonori <[email protected]> Cc: Becky Bruce <[email protected]> [ further fixed the error message ] Signed-off-by: Andrew Morton <[email protected]> LKML-Reference: <[email protected]> Signed-off-by: Ingo Molnar <[email protected]>
- Loading branch information