diff options
author | Alan Douglas <adouglas@cadence.com> | 2014-07-23 14:06:40 +0400 |
---|---|---|
committer | Max Filippov <jcmvbkbc@gmail.com> | 2014-08-14 11:59:14 +0400 |
commit | 1ca49463c44c970b1ab1d71b0f268bfdf8427a7e (patch) | |
tree | c6ece6e5481ac4a06803bc6ed8a2b7f8d3d653ae /CREDITS | |
parent | f61bf8e7d19e0a3456a7a9ed97c399e4353698dc (diff) | |
download | linux-1ca49463c44c970b1ab1d71b0f268bfdf8427a7e.tar.xz |
xtensa: fix address checks in dma_{alloc,free}_coherent
Virtual address is translated to the XCHAL_KSEG_CACHED region in the
dma_free_coherent, but is checked to be in the 0...XCHAL_KSEG_SIZE
range.
Change check for end of the range from 'addr >= X' to 'addr > X - 1' to
handle the case of X == 0.
Replace 'if (C) BUG();' construct with 'BUG_ON(C);'.
Cc: stable@vger.kernel.org
Signed-off-by: Alan Douglas <adouglas@cadence.com>
Signed-off-by: Max Filippov <jcmvbkbc@gmail.com>
Diffstat (limited to 'CREDITS')
0 files changed, 0 insertions, 0 deletions