diff options
author | Mark Brown <broonie@kernel.org> | 2018-03-12 19:50:32 +0300 |
---|---|---|
committer | Mark Brown <broonie@kernel.org> | 2018-03-12 19:50:32 +0300 |
commit | aa584bada6c2114371a415d134f09fc376c8e07b (patch) | |
tree | 81cb759d18689ddfcff0d3cbb3d5d6a2583dada7 /drivers/base/regmap/regmap.c | |
parent | d2f2bb84877398709a12f3198a4a85c1c765eaf3 (diff) | |
parent | f00e71091ab92eba52122332586c6ecaa9cd1a56 (diff) | |
download | linux-aa584bada6c2114371a415d134f09fc376c8e07b.tar.xz |
Merge remote-tracking branch 'regmap/fix/core' into regmap-linus
Diffstat (limited to 'drivers/base/regmap/regmap.c')
-rw-r--r-- | drivers/base/regmap/regmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index 7519b039c162..c7b7c5fa73ab 100644 --- a/drivers/base/regmap/regmap.c +++ b/drivers/base/regmap/regmap.c @@ -1831,7 +1831,7 @@ int regmap_raw_write(struct regmap *map, unsigned int reg, return -EINVAL; if (val_len % map->format.val_bytes) return -EINVAL; - if (map->max_raw_write && map->max_raw_write > val_len) + if (map->max_raw_write && map->max_raw_write < val_len) return -E2BIG; map->lock(map->lock_arg); |