mirror of
https://github.com/FEX-Emu/linux.git
synced 2025-01-27 05:32:27 +00:00
iio: Fix inkern remove incorrect put of device
The device_get is after this point so on error we should not be removing it. Signed-off-by: Jonathan Cameron <jic23@kernel.org>
This commit is contained in:
parent
462c8d2794
commit
7b7627410e
@ -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);
|
||||
|
Loading…
x
Reference in New Issue
Block a user