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
crc32.c
crc32defs.h
crc7.c
ctype.c
debug_locks.c
debugobjects.c
dec_and_lock.c
decompress.c
decompress_bunzip2.c
decompress_inflate.c
decompress_unlzma.c
devres.c
div64.c
dma-debug.c
dump_stack.c
dynamic_debug.c
extable.c
fault-inject.c
find_last_bit.c
find_next_bit.c
flex_array.c
gcd.c
gen_crc32table.c
genalloc.c
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