[PATCH 3.4 004/125] devres: fix a for loop bounds check

2016-10-12 Thread lizf
From: Dan Carpenter 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 1f35d04a02a652f14566f875aef3a6f2af4cb77b upstream. The iomap[] array has PCIM_IOMAP_MAX (6) elements and not DEVICE_COUNT_RESOURCE (16). This

[PATCH 3.4 004/125] devres: fix a for loop bounds check

2016-10-12 Thread lizf
From: Dan Carpenter 3.4.113-rc1 review patch. If anyone has any objections, please let me know. -- commit 1f35d04a02a652f14566f875aef3a6f2af4cb77b upstream. The iomap[] array has PCIM_IOMAP_MAX (6) elements and not DEVICE_COUNT_RESOURCE (16). This bug was found using a