From: Tom Rini Date: Sun, 20 Aug 2017 19:29:20 -0400 Subject: [U-Boot] cmd/read.c: Fix checking blk_dread return value In-Reply-To: <1502758730-26723-1-git-send-email-trini@konsulko.com> References: <1502758730-26723-1-git-send-email-trini@konsulko.com> Message-ID: <20170820232920.GT17193@bill-the-cat> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de 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 > Cc: Simon Glass > Cc: Bin Meng > Signed-off-by: Tom Rini 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: