aboutsummaryrefslogtreecommitdiff
path: root/kernel
diff options
context:
space:
mode:
authorLuca Ceresoli2020-08-30 18:38:49 +0200
committerMoritz Fischer2020-08-30 17:08:57 -0700
commiteefe64fba9f2f2328c27ed9d9d02107083a62659 (patch)
tree0e466102710a717e0d5f46160ad2ff23e5090ce9 /kernel
parent16b7856d94807abeb62f615a8580fd7ae8a27515 (diff)
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: Tom Rix <trix@redhat.com> Reviewed-by: Tom Rix <trix@redhat.com> Signed-off-by: Luca Ceresoli <luca@lucaceresoli.net> Signed-off-by: Moritz Fischer <mdf@kernel.org>
Diffstat (limited to 'kernel')
0 files changed, 0 insertions, 0 deletions