OSDN Git Service

regulator: core: Don't corrupt display when printing uV offsets
authorMark Brown <broonie@kernel.org>
Tue, 9 Jun 2015 18:54:10 +0000 (19:54 +0100)
committerMark Brown <broonie@kernel.org>
Tue, 9 Jun 2015 18:57:50 +0000 (19:57 +0100)
commitc456b89a93664d6ff0aba1ced9dd88b88df2505a
treeb56467726a19cd26193cf497c2a44864771db01d
parentb787f68c36d49bb1d9236f403813641efa74a031
regulator: core: Don't corrupt display when printing uV offsets

We weren't taking into account the already used buffer when telling
sprintf() where to print to.

Reported-by: Stefan Wahren <stefan.wahren@i2se.com>
Signed-off-by: Mark Brown <broonie@kernel.org>
drivers/regulator/core.c