Skip to content
Commit 75a024d3 authored by Fernando Yang's avatar Fernando Yang Committed by Greg Kroah-Hartman
Browse files

iio: adc: ad7266: Fix variable checking bug

commit a2b86132 upstream.

The ret variable was not checked after iio_device_release_direct_mode(),
which could possibly cause errors

Fixes: c70df20e

 ("iio: adc: ad7266: claim direct mode during sensor read")
Signed-off-by: default avatarFernando Yang <hagisf@usp.br>
Link: https://lore.kernel.org/r/20240603180757.8560-1-hagisf@usp.br
Cc: <Stable@vger.kernel.org>
Signed-off-by: default avatarJonathan Cameron <Jonathan.Cameron@huawei.com>
Signed-off-by: default avatarGreg Kroah-Hartman <gregkh@linuxfoundation.org>
parent bba83bf8
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment