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>
Sat, 7 Apr 2012 08:27:04 +0000 (09:27 +0100)
commit851960ba7cb38a6a108d102e4c8b0ab702972e22
tree0af40ec3a92921077f71a2f8b703f64eb0eb322f
parent9878647f4349dbaa46b4026ed9bbf8acfc0de34c
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