[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <e0ce7edb-53dd-2961-278d-e9bc8a1726ac@redhat.com>
Date: Thu, 27 Aug 2020 12:04:23 -0700
From: Tom Rix <trix@...hat.com>
To: Luca Ceresoli <luca@...aceresoli.net>, linux-fpga@...r.kernel.org
Cc: Moritz Fischer <mdf@...nel.org>,
Michal Simek <michal.simek@...inx.com>,
linux-arm-kernel@...ts.infradead.org, linux-kernel@...r.kernel.org,
Anatolij Gustschin <agust@...x.de>
Subject: Re: [PATCH v2 4/5] fpga manager: xilinx-spi: add error checking after
gpiod_get_value()
On 8/27/20 7:32 AM, Luca Ceresoli wrote:
> 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@...hat.com>
> Signed-off-by: Luca Ceresoli <luca@...aceresoli.net>
>
> ---
Thanks, this looks fine.
Reviewed-by: Tom Rix <trix@...hat.com>
Powered by blists - more mailing lists