regmap: validate regmap_raw_read/write val_len
authorStephen Warren <swarren@nvidia.com>
Fri, 6 Apr 2012 21:16:03 +0000 (15:16 -0600)
committerMark Brown <broonie@opensource.wolfsonmicro.com>
Fri, 13 Apr 2012 10:29:19 +0000 (11:29 +0100)
commit2690dfdb05abf3a8e11ff21ec12dbbe620a026fb
treea4d59b2839ca8af08843abdba514ae37cf726ac9
parent8664d4901fb17b55aea47ce4ab20fe82c6c177f2
regmap: validate regmap_raw_read/write val_len

val_len should be a multiple of val_bytes. If it's not, error out early.

Signed-off-by: Stephen Warren <swarren@nvidia.com>
Signed-off-by: Mark Brown <broonie@opensource.wolfsonmicro.com>
drivers/base/regmap/regmap.c