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

Skip to content
Commit e5f1efb9 authored by Gabriele Mazzotta's avatar Gabriele Mazzotta Committed by Jonathan Cameron
Browse files

iio: kfifo: Set update_needed to false only if a buffer was allocated



Check whether the allocation of a new kfifo buffer failed or not before
setting the update_needed flag to false. This will make
iio_request_update_kfifo() try to allocate a new buffer the next time a
buffer update is requested.

Signed-off-by: default avatarGabriele Mazzotta <gabriele.mzt@gmail.com>
Signed-off-by: default avatarJonathan Cameron <jic23@kernel.org>
parent 0e81bc99
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment