Re: [PATCH] driver core: Prevent overflow from causing infinite loops

From: Greg KH
Date: Wed Dec 11 2019 - 03:18:19 EST


On Tue, Dec 10, 2019 at 05:41:37PM -0500, Simon Schwartz wrote:
> num_resources in the platform_device struct is declared as a u32.
> The for loops that iterate over num_resources use an int as the counter,
> which can cause infinite loops on architectures with smaller ints.

What arch is that that has so many resources and yet is only a 32bit
system?

thanks,

greg k-h