Skip to content
Commit eefe64fb authored by Luca Ceresoli's avatar Luca Ceresoli Committed by Moritz Fischer
Browse files

fpga manager: xilinx-spi: add error checking after gpiod_get_value()



Current code calls gpiod_get_value() without error checking. Should the
GPIO controller fail, execution would continue without any error message.

Fix by checking for negative error values.

Reported-by: default avatarTom Rix <trix@redhat.com>
Reviewed-by: default avatarTom Rix <trix@redhat.com>
Signed-off-by: default avatarLuca Ceresoli <luca@lucaceresoli.net>
Signed-off-by: default avatarMoritz Fischer <mdf@kernel.org>
parent 16b7856d
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