projects
/
profile
/
ivi
/
kernel-x86-ivi.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
462c8d2
)
iio: Fix inkern remove incorrect put of device
author
Jonathan Cameron
<jic23@kernel.org>
Sat, 30 Jun 2012 12:55:23 +0000
(13:55 +0100)
committer
Jonathan Cameron
<jic23@kernel.org>
Sun, 8 Jul 2012 19:02:31 +0000
(20:02 +0100)
The device_get is after this point so on error we should not be
removing it.
Signed-off-by: Jonathan Cameron <jic23@kernel.org>
drivers/iio/inkern.c
patch
|
blob
|
history
diff --git
a/drivers/iio/inkern.c
b/drivers/iio/inkern.c
index
9a46ca6
..
e2aded0
100644
(file)
--- a/
drivers/iio/inkern.c
+++ b/
drivers/iio/inkern.c
@@
-193,7
+193,6
@@
struct iio_channel *iio_channel_get_all(const char *name)
c->map->adc_channel_label);
if (chans[mapind].channel == NULL) {
ret = -EINVAL;
- iio_device_put(chans[mapind].indio_dev);
goto error_free_chans;
}
iio_device_get(chans[mapind].indio_dev);