projects
/
GitHub
/
exynos8895
/
android_kernel_samsung_universal8895.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
6b3aa31
)
iio:dac:ad5449: unlock on error path
author
Dan Carpenter
<dan.carpenter@oracle.com>
Wed, 24 Oct 2012 07:13:00 +0000
(08:13 +0100)
committer
Jonathan Cameron
<jic23@kernel.org>
Wed, 31 Oct 2012 10:59:55 +0000
(10:59 +0000)
There is an unlock missing on this error path.
Signed-off-by: Dan Carpenter <dan.carpenter@oracle.com>
Acked-by: Lars-Peter Clausen <lars@metafoo.de>
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/dac/ad5449.c
patch
|
blob
|
blame
|
history
diff --git
a/drivers/iio/dac/ad5449.c
b/drivers/iio/dac/ad5449.c
index 5b43030fe6e35651edd32bf0a8ab4fb988384d8a..0ee6f8eeba8d4b09e1ea75d04309ad981631acbb 100644
(file)
--- a/
drivers/iio/dac/ad5449.c
+++ b/
drivers/iio/dac/ad5449.c
@@
-124,12
+124,13
@@
static int ad5449_read(struct iio_dev *indio_dev, unsigned int addr,
ret = spi_sync(st->spi, &msg);
if (ret < 0)
-
return ret
;
+
goto out_unlock
;
*val = be16_to_cpu(st->data[1]);
- mutex_unlock(&indio_dev->mlock);
- return 0;
+out_unlock:
+ mutex_unlock(&indio_dev->mlock);
+ return ret;
}
static int ad5449_read_raw(struct iio_dev *indio_dev,