diff options
author | 2019-12-10 17:41:37 -0500 | |
---|---|---|
committer | 2020-01-14 16:14:47 +0100 | |
commit | 39cc539f90d035a293240c9443af50be55ee81b8 (patch) | |
tree | 9e0d2cb4dbf07616afecdc61f1f6e94f451944f7 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | fs/kernfs/dir.c: Clean code by removing always true condition (diff) | |
download | linux-rng-39cc539f90d035a293240c9443af50be55ee81b8.tar.xz linux-rng-39cc539f90d035a293240c9443af50be55ee81b8.zip |
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 <kern.simon@theschwartz.xyz>
Link: https://lore.kernel.org/r/2201ce63a2a171ffd2ed14e867875316efcf71db.camel@theschwartz.xyz
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'tools/perf/scripts/python/export-to-postgresql.py')
0 files changed, 0 insertions, 0 deletions