aboutsummaryrefslogtreecommitdiff
path: root/scripts/gcc-plugins/randomize_layout_plugin.c
diff options
context:
space:
mode:
authorSimon Schwartz <[email protected]>2019-12-10 17:41:37 -0500
committerGreg Kroah-Hartman <[email protected]>2020-01-14 16:14:47 +0100
commit39cc539f90d035a293240c9443af50be55ee81b8 (patch)
tree9e0d2cb4dbf07616afecdc61f1f6e94f451944f7 /scripts/gcc-plugins/randomize_layout_plugin.c
parent5bf33f04eb5c3e6c55988046c88a5986430c7b4a (diff)
driver core: platform: Prevent resouce overflow from causing infinite loops
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. Change the loop counters to u32. Signed-off-by: Simon Schwartz <[email protected]> Link: https://lore.kernel.org/r/[email protected] Signed-off-by: Greg Kroah-Hartman <[email protected]>
Diffstat (limited to 'scripts/gcc-plugins/randomize_layout_plugin.c')
0 files changed, 0 insertions, 0 deletions