Home
last modified time | relevance | path

Searched hist:d03618d5cbc3e1fb4f8c63f2e4966f825007ce08 (Results 1 – 1 of 1) sorted by relevance

/rk3399_rockchip-uboot/cmd/
H A Dread.cd03618d5cbc3e1fb4f8c63f2e4966f825007ce08 Tue Aug 15 00:58:50 UTC 2017 Tom Rini <trini@konsulko.com> cmd/read.c: Fix checking blk_dread return value

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@theobroma-systems.com>
Cc: Simon Glass <sjg@chromium.org>
Cc: Bin Meng <bmeng.cn@gmail.com>
Signed-off-by: Tom Rini <trini@konsulko.com>