diff options
author | Mark Brown <[email protected]> | 2012-12-11 01:14:11 +0900 |
---|---|---|
committer | Mark Brown <[email protected]> | 2012-12-11 01:29:39 +0900 |
commit | db04328c167ff8e7c57f4a3532214aeada3a82fd (patch) | |
tree | a1c57616c3007b6d4fbb29a28f144ec89302917e /tools/perf/scripts/python/Perf-Trace-Util | |
parent | cbc1938badc31f43ab77e92a9b1a51c4fe8b4113 (diff) |
regmap: debugfs: Avoid overflows for very small reads
If count is less than the size of a register then we may hit integer
wraparound when trying to move backwards to check if we're still in
the buffer. Instead move the position forwards to check if it's still
in the buffer, we are unlikely to be able to allocate a buffer
sufficiently big to overflow here.
Signed-off-by: Mark Brown <[email protected]>
Cc: [email protected]
Diffstat (limited to 'tools/perf/scripts/python/Perf-Trace-Util')
0 files changed, 0 insertions, 0 deletions