]> Git Repo - linux.git/commitdiff
regmap: make sure we unlock on failure in regmap_bulk_write
authorCourtney Cavin <[email protected]>
Wed, 20 Nov 2013 23:27:09 +0000 (15:27 -0800)
committerMark Brown <[email protected]>
Thu, 21 Nov 2013 14:05:31 +0000 (14:05 +0000)
Signed-off-by: Courtney Cavin <[email protected]>
Signed-off-by: Mark Brown <[email protected]>
drivers/base/regmap/regmap.c

index 9c021d9cace0fcc74080ccec7b5a2b3933c65f2a..d1a914116f66d4a0f3d8acf2dd1ee6bccee7f897 100644 (file)
@@ -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);
This page took 0.057369 seconds and 4 git commands to generate.