On 06/30/2012 01:55 PM, Jonathan Cameron wrote: > The device_get is after this point so on error we should not be > removing it. > merged to fixes. > Signed-off-by: Jonathan Cameron <jic23@xxxxxxxxxx> > --- > drivers/iio/inkern.c | 1 - > 1 file changed, 1 deletion(-) > > diff --git a/drivers/iio/inkern.c b/drivers/iio/inkern.c > index 9a46ca6..e2aded0 100644 > --- 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); > -- To unsubscribe from this list: send the line "unsubscribe linux-iio" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html