Tag Archive: 6096481649ac27466cf2b453f185b43f680bf541

Aug 17 2016

powerpc/powernv/pci: fix iterator signedness

Author: Andrzej Hajda <a.hajda@samsung.com> Unsigned type is always non-negative, so the loop could not end in case condition is never true. The problem has been detected using semantic patch scripts/coccinelle/tests/unsigned_lesser_than_zero.cocci Signed-off-by: Andrzej Hajda Signed-off-by: Benjamin Herrenschmidt — arch/powerpc/platforms/powernv/pci-ioda.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)   diff –git a/arch/powerpc/platforms/powernv/pci-ioda.c b/arch/powerpc/platforms/powernv/pci-ioda.c index fd9444f..1321826 …

Continue reading »