commit | c335931ed9d22c30017cf957518262c2fe6502ce | [log] [tgz] |
---|---|---|
author | Markus Pargmann <mpa@pengutronix.de> | Sun Aug 30 09:33:55 2015 +0200 |
committer | Mark Brown <broonie@kernel.org> | Sun Aug 30 10:19:22 2015 +0100 |
tree | d5468748135748a6bad1e728af55adb7af909b53 | |
parent | f50c9eb4e9304cf555206c93152f580c0e7213b2 [diff] |
regmap: Add raw_write/read checks for max_raw_write/read sizes Check in regmap_raw_read() and regmap_raw_write() for correct maximum sizes of the operations. Return -E2BIG if this size is not supported because it is too big. Also this patch causes an uninitialized variable warning so it initializes ret (although not necessary). Signed-off-by: Markus Pargmann <mpa@pengutronix.de> Signed-off-by: Mark Brown <broonie@kernel.org>