diff options
Diffstat (limited to 'kernel/drivers/iio/inkern.c')
-rw-r--r-- | kernel/drivers/iio/inkern.c | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/kernel/drivers/iio/inkern.c b/kernel/drivers/iio/inkern.c index c8bad3cf8..217e9306a 100644 --- a/kernel/drivers/iio/inkern.c +++ b/kernel/drivers/iio/inkern.c @@ -351,6 +351,8 @@ EXPORT_SYMBOL_GPL(iio_channel_get); void iio_channel_release(struct iio_channel *channel) { + if (!channel) + return; iio_device_put(channel->indio_dev); kfree(channel); } |