git.openpandora.org
/
pandora-kernel.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
f61bf8e
)
xtensa: fix address checks in dma_{alloc,free}_coherent
author
Alan Douglas
<adouglas@cadence.com>
Wed, 23 Jul 2014 10:06:40 +0000
(14:06 +0400)
committer
Max Filippov
<jcmvbkbc@gmail.com>
Thu, 14 Aug 2014 07:59:14 +0000
(11:59 +0400)
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>
arch/xtensa/kernel/pci-dma.c
patch
|
blob
|
history
diff --cc
arch/xtensa/kernel/pci-dma.c
Simple merge