From: Michael Brown Date: Wed, 20 Dec 2006 14:11:50 +0000 (+0000) Subject: Return -EIO when verification fails, instead of -EINVAL. X-Git-Tag: v0.9.3~853 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=6ceaa158da9cf2c5c74e791ffada55b7f91c6f97;p=thirdparty%2Fipxe.git Return -EIO when verification fails, instead of -EINVAL. --- diff --git a/src/drivers/nvs/nvs.c b/src/drivers/nvs/nvs.c index 44b56f653..02a96d9d1 100644 --- a/src/drivers/nvs/nvs.c +++ b/src/drivers/nvs/nvs.c @@ -93,7 +93,7 @@ static int nvs_verify ( struct nvs_device *nvs, unsigned int address, if ( memcmp ( data, read_data, len ) != 0 ) { DBG ( "NVS %p verification failed at %#04x+%d\n", nvs, address, len ); - return -EINVAL; + return -EIO; } return 0;