diff options
author | Simon Schwartz <kern.simon@theschwartz.xyz> | 2019-12-10 17:41:37 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@linuxfoundation.org> | 2020-01-14 16:14:47 +0100 |
commit | 39cc539f90d035a293240c9443af50be55ee81b8 (patch) | |
tree | 9e0d2cb4dbf07616afecdc61f1f6e94f451944f7 /tools/perf/scripts/python/export-to-postgresql.py | |
parent | 5bf33f04eb5c3e6c55988046c88a5986430c7b4a (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 <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