[PATCH] virtio: fix return value check

Simon Glass sjg at chromium.org
Tue May 12 13:41:41 CEST 2026


On 2026-05-12T08:39:49, Christian Pötzsch
<christian.poetzsch at kernkonzept.com> wrote:
> virtio: fix return value check
>
> The virtio_blk_do_single_req function returns ulong, which normally is
> the processed size, but in an error case can be the actual error. Use
> the special IS_ERR_VALUE macro to test for error.
>
> Addresses-Coverity-ID: CID 645833 (DEADCODE) & CID 645834 (NO_EFFECT)
> Signed-off-by: Christian Pötzsch <christian.poetzsch at kernkonzept.com>
>
> drivers/virtio/virtio_blk.c | 3 ++-
>  1 file changed, 2 insertions(+), 1 deletion(-)

Reviewed-by: Simon Glass <sjg at chromium.org>


More information about the U-Boot mailing list