Messages in this thread Patch in this message | | | From | Courtney Cavin <> | Subject | [PATCH] regmap: make sure we unlock on failure in regmap_bulk_write | Date | Wed, 20 Nov 2013 15:27:09 -0800 |
| |
Signed-off-by: Courtney Cavin <courtney.cavin@sonymobile.com> --- drivers/base/regmap/regmap.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/drivers/base/regmap/regmap.c b/drivers/base/regmap/regmap.c index 9c021d9..d1a9141 100644 --- a/drivers/base/regmap/regmap.c +++ b/drivers/base/regmap/regmap.c @@ -1549,7 +1549,7 @@ int regmap_bulk_write(struct regmap *map, unsigned int reg, const void *val, val + (i * val_bytes), val_bytes); if (ret != 0) - return ret; + goto out; } } else { ret = _regmap_raw_write(map, reg, wval, val_bytes * val_count); -- 1.8.1.5
| |