[U-Boot] cmd/read.c: Fix checking blk_dread return value

Tom Rini trini at konsulko.com
Sun Aug 20 23:29:20 UTC 2017


On Mon, Aug 14, 2017 at 08:58:50PM -0400, Tom Rini wrote:

> The function blk_dread will return -ENOSYS on failure or on success the
> number of blocks read, which must be the number asked to read (otherwise
> it failed somewhere).  Correct this check.
> 
> Reported-by: Coverity (CID: 166335)
> Cc: Philipp Tomsich <philipp.tomsich at theobroma-systems.com>
> Cc: Simon Glass <sjg at chromium.org>
> Cc: Bin Meng <bmeng.cn at gmail.com>
> Signed-off-by: Tom Rini <trini at konsulko.com>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: Digital signature
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20170820/0dbc5d15/attachment.sig>


More information about the U-Boot mailing list