diff options
author | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-12-11 01:14:11 +0900 |
---|---|---|
committer | Mark Brown <broonie@opensource.wolfsonmicro.com> | 2012-12-11 01:29:39 +0900 |
commit | db04328c167ff8e7c57f4a3532214aeada3a82fd (patch) | |
tree | a1c57616c3007b6d4fbb29a28f144ec89302917e /tools/scripts | |
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 <broonie@opensource.wolfsonmicro.com>
Cc: stable@vger.kernel.org
Diffstat (limited to 'tools/scripts')
0 files changed, 0 insertions, 0 deletions