]> git.ipfire.org Git - thirdparty/u-boot.git/commit
virtio: fix return value check master
authorChristian Pötzsch <christian.poetzsch@kernkonzept.com>
Tue, 12 May 2026 08:39:49 +0000 (10:39 +0200)
committerTom Rini <trini@konsulko.com>
Tue, 12 May 2026 18:38:49 +0000 (12:38 -0600)
commit36d4c653580824b16574560b21d4401614d8b68e
tree80532f62e58fa179573ffb78f71623fbf8893dd0
parenta1a47eee6763e61e184d4d0cda0a3cf0922a800d
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@kernkonzept.com>
Reviewed-by: Simon Glass <sjg@chromium.org>
drivers/virtio/virtio_blk.c