Skip to content
Snippets Groups Projects
Commit b48b7a76 authored by John Crispin's avatar John Crispin
Browse files

mtd: fix md5sum error checking


In mtd_verify(), the return value of md5sum() has been
interpreted as error if nonzero, while the function
returns number of processed bytes, which caused
mtd_verify() to always fail.

This patch fixes error checking to interpret only
negative values as errors.

Signed-off-by: default avatarZefir Kurtisi <zefir.kurtisi@neratec.com>

SVN-Revision: 44605
parent f1625b11
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment