* [PATCH] regmap: make sure we unlock on failure in regmap_bulk_write
@ 2013-11-20 23:27 Courtney Cavin
2013-11-21 14:05 ` Mark Brown
0 siblings, 1 reply; 2+ messages in thread
From: Courtney Cavin @ 2013-11-20 23:27 UTC (permalink / raw)
To: broonie; +Cc: gregkh, linux-kernel
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
^ permalink raw reply [flat|nested] 2+ messages in thread
* Re: [PATCH] regmap: make sure we unlock on failure in regmap_bulk_write
2013-11-20 23:27 [PATCH] regmap: make sure we unlock on failure in regmap_bulk_write Courtney Cavin
@ 2013-11-21 14:05 ` Mark Brown
0 siblings, 0 replies; 2+ messages in thread
From: Mark Brown @ 2013-11-21 14:05 UTC (permalink / raw)
To: Courtney Cavin; +Cc: gregkh, linux-kernel
[-- Attachment #1: Type: text/plain, Size: 146 bytes --]
On Wed, Nov 20, 2013 at 03:27:09PM -0800, Courtney Cavin wrote:
> Signed-off-by: Courtney Cavin <courtney.cavin@sonymobile.com>
Applied, thanks.
[-- Attachment #2: Digital signature --]
[-- Type: application/pgp-signature, Size: 836 bytes --]
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2013-11-21 14:06 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-11-20 23:27 [PATCH] regmap: make sure we unlock on failure in regmap_bulk_write Courtney Cavin
2013-11-21 14:05 ` Mark Brown
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®