Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit b23dedd4 authored by Fernando Yang's avatar Fernando Yang Committed by Vegard Nossum
Browse files

iio: adc: ad7266: Fix variable checking bug



commit a2b86132955268b2a1703082fbc2d4832fc001b8 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>
(cherry picked from commit 75a024d3ab0d331fc1d0b640b00e63d31d556b1e)
Signed-off-by: default avatarVegard Nossum <vegard.nossum@oracle.com>
parent 51e44a77
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment