linux/arch
Marek Szyprowski 26f98b66a5 ARM: 8404/1: dma-mapping: fix off-by-one error in bitmap size check
commit 462859aa7b upstream.

nr_bitmaps member of mapping structure stores the number of already
allocated bitmaps and it is interpreted as loop iterator (it starts from
0 not from 1), so a comparison against number of possible bitmap
extensions should include this fact. This patch fixes this by changing
the extension failure condition. This issue has been introduced by
commit 4d852ef8c2 ("arm: dma-mapping: Add
support to extend DMA IOMMU mappings").

Reported-by: Hyungwon Hwang <human.hwang@samsung.com>
Signed-off-by: Marek Szyprowski <m.szyprowski@samsung.com>
Reviewed-by: Hyungwon Hwang <human.hwang@samsung.com>
Signed-off-by: Russell King <rmk+kernel@arm.linux.org.uk>
Signed-off-by: Luis Henriques <luis.henriques@canonical.com>
History 2015-08-10 09:54:27 +01:00
..
alpha vm: add VM_FAULT_SIGSEGV handling support 2015-02-04 10:58:27 +00:00
arc ARC: make sure instruction_pointer() returns unsigned value 2015-08-10 09:54:19 +01:00
arm ARM: 8404/1: dma-mapping: fix off-by-one error in bitmap size check 2015-08-10 09:54:27 +01:00
arm64 arm64: Don't report clear pmds and puds as huge 2015-07-15 10:01:03 +01:00
avr32 vm: add VM_FAULT_SIGSEGV handling support 2015-02-04 10:58:27 +00:00
blackfin blackfin: vmlinux.lds.S: reserve 32 bytes space at the end of data section for XIP kernel 2014-07-26 08:32:50 +08:00
c6x C6x: time: Ensure consistency in __init 2015-05-06 11:33:02 +01:00
cris vm: add VM_FAULT_SIGSEGV handling support 2015-02-04 10:58:27 +00:00
frv vm: add VM_FAULT_SIGSEGV handling support 2015-02-04 10:58:27 +00:00
hexagon Hexagon: Delete stale barrier.h 2014-05-01 10:09:47 -07:00
ia64 efi/reboot: Add generic wrapper around EfiResetSystem() 2015-05-12 09:36:34 +01:00
m32r vm: add VM_FAULT_SIGSEGV handling support 2015-02-04 10:58:27 +00:00
m68k vm: add VM_FAULT_SIGSEGV handling support 2015-02-04 10:58:27 +00:00
metag metag: Fix KSTK_EIP() and KSTK_ESP() macros 2015-03-18 09:58:55 +00:00
microblaze vm: add VM_FAULT_SIGSEGV handling support 2015-02-04 10:58:27 +00:00
mips MIPS: kernel: traps: Fix broken indentation 2015-08-10 09:54:04 +01:00
mn10300 vm: add VM_FAULT_SIGSEGV handling support 2015-02-04 10:58:27 +00:00
openrisc vm: add VM_FAULT_SIGSEGV handling support 2015-02-04 10:58:27 +00:00
parisc parisc,metag: Fix crashes due to stack randomization on stack-grows-upwards architectures 2015-05-28 10:00:03 +01:00
powerpc powerpc/pseries: Fix possible leaked device node reference 2015-07-15 10:01:15 +01:00
s390 crypto: s390/ghash - Fix incorrect ghash icv buffer handling. 2015-06-02 12:08:17 +01:00
score vm: add VM_FAULT_SIGSEGV handling support 2015-02-04 10:58:27 +00:00
sh nosave: consolidate __nosave_{begin,end} in <asm/sections.h> 2015-05-06 10:24:18 +01:00
sparc sparc: Use GFP_ATOMIC in ldc_alloc_exp_dring() as it can be called in softirq context 2015-07-15 10:01:32 +01:00
tile vm: add VM_FAULT_SIGSEGV handling support 2015-02-04 10:58:27 +00:00
um vm: add VM_FAULT_SIGSEGV handling support 2015-02-04 10:58:27 +00:00
unicore32 nosave: consolidate __nosave_{begin,end} in <asm/sections.h> 2015-05-06 10:24:18 +01:00
x86 x86/nmi/64: Use DF to avoid userspace RSP confusing nested NMI detection 2015-08-10 09:54:26 +01:00
xtensa xtensa: ISS: fix locking in TAP network adapter 2015-05-06 10:24:17 +01:00
.gitignore arch: Ignore arch/i386 and arch/x86_64 2008-01-19 21:29:39 -08:00
Kconfig uprobes: Kconfig dependency fix 2014-03-18 16:39:33 -04:00