An error occurred while fetching folder content.
devres: fix a for loop bounds check
Dan Carpenter authored
commit 1f35d04a upstream.

The iomap[] array has PCIM_IOMAP_MAX (6) elements and not
DEVICE_COUNT_RESOURCE (16).  This bug was found using a static checker.
It may be that the "if (!(mask & (1 << i)))" check means we never
actually go past the end of the array in real life.

Fixes: ec04b075

 ('iomap: implement pcim_iounmap_regions()')
Signed-off-by: default avatarDan Carpenter <dan.carpenter@oracle.com>
Acked-by: default avatarTejun Heo <tj@kernel.org>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Signed-off-by: default avatarBen Hutchings <ben@decadent.org.uk>
(cherry picked from commit e7102453

)
Signed-off-by: default avatarWilly Tarreau <w@1wt.eu>
34066c1f
Name Last commit Last update
..
lzo lzo: check for length overrun in variable length encoding.
reed_solomon lib: Remove unnecessary inclusions of asm/semaphore.h
zlib_deflate trivial: fix typo "to to" in multiple files
zlib_inflate bzip2/lzma: library support for gzip, bzip2 and lzma decompression
.gitignore Add some basic .gitignore files
Kconfig lib: Provide generic atomic64_t implementation
Kconfig.debug powerpc: Minor cleanup to lib/Kconfig.debug
Kconfig.kgdb kgdb: remove the requirement for CONFIG_FRAME_POINTER
Kconfig.kmemcheck kmemcheck: depend on HAVE_ARCH_KMEMCHECK
Makefile crypto: Move md5_transform to lib/md5.c
argv_split.c LIB: Replace inappropriate include of <linux/bug.h>
atomic64.c lib: export generic atomic64_t functions
audit.c [PATCH] audit signal recipients
bcd.c rtc: BCD codeshrink
bitmap.c Make bitmask 'and' operators return a result code
bitrev.c lib: export bitrev16
bug.c allow bug table entries to use relative pointers (and use it on x86-64)
bust_spinlocks.c oops handling: ensure that any oops is flushed to the mtdoops console
check_signature.c uninline check_signature()
checksum.c lib/checksum.c: fix endianess bug
cmdline.c generic, memparse(): constify argument
cpumask.c x86: remove some alloc_bootmem_cpumask_var calling
crc-ccitt.c [PATCH] kernel-doc for lib/crc*.c
crc-itu-t.c CRC ITU-T V.41
crc-t10dif.c [SCSI] lib: Add support for the T10 (SCSI) Data Integrity Field CRC
crc16.c [PATCH] kernel-doc for lib/crc*.c
crc32.c lib/: Spelling fixes
crc32defs.h Linux-2.6.12-rc2
crc7.c CRC7 support
ctype.c Linux-2.6.12-rc2
debug_locks.c lockdep: warn about lockdep disabling after kernel taint
debugobjects.c debugobjects: Fix boot crash when kmemleak and debugobjects enabled
dec_and_lock.c atomic: only take lock when the counter drops to zero on UP as well
decompress.c bzip2/lzma: don't stop search at first unconfigured compression
decompress_bunzip2.c lib/decompress_*: only include <linux/slab.h> if STATIC is not defined
decompress_inflate.c lzma/gzip: fix potential oops when input data is truncated
decompress_unlzma.c lzma/gzip: fix potential oops when input data is truncated
devres.c devres: fix a for loop bounds check
div64.c add an inlined version of iter_div_u64_rem
dma-debug.c dma-debug: allow DMA_BIDIRECTIONAL mappings to be synced with DMA_FROM_DEVICE and
dump_stack.c Linux-2.6.12-rc2
dynamic_debug.c Dynamic debug: fix typo: -/->
extable.c module: trim exception table on init free.
fault-inject.c headers: remove sched.h from interrupt.h
find_last_bit.c bitmap: find_last_bit()
find_next_bit.c bitops: remove "optimizations"
flex_array.c flex_array: fix the panic when calling flex_array_alloc() without __GFP_ZERO
gcd.c lib: add lib/gcd.c
gen_crc32table.c Linux-2.6.12-rc2
genalloc.c genalloc: stop crashing the system when destroying a pool
halfmd4.c
hexdump.c
hweight.c
idr.c
inflate.c
int_sqrt.c
iomap.c
iomap_copy.c
iommu-helper.c
ioremap.c
irq_regs.c
is_single_threaded.c
kasprintf.c
kernel_lock.c
klist.c
kobject.c
kobject_uevent.c
kref.c
lcm.c
libcrc32c.c
list_debug.c
lmb.c
locking-selftest-hardirq.h
locking-selftest-mutex.h
locking-selftest-rlock-hardirq.h
locking-selftest-rlock-softirq.h
locking-selftest-rlock.h
locking-selftest-rsem.h
locking-selftest-softirq.h
locking-selftest-spin-hardirq.h
locking-selftest-spin-softirq.h
locking-selftest-spin.h
locking-selftest-wlock-hardirq.h
locking-selftest-wlock-softirq.h
locking-selftest-wlock.h
locking-selftest-wsem.h
locking-selftest.c
md5.c
nlattr.c
parser.c
percpu_counter.c
plist.c
prio_heap.c
prio_tree.c
proportions.c
radix-tree.c
random32.c
ratelimit.c
rational.c
rbtree.c