summaryrefslogtreecommitdiffstats
path: root/src/drivers/nvs
diff options
context:
space:
mode:
authorMichael Brown2006-12-20 15:11:50 +0100
committerMichael Brown2006-12-20 15:11:50 +0100
commit6ceaa158da9cf2c5c74e791ffada55b7f91c6f97 (patch)
treeb5bd6d830de0aa999547095b7783b1789dcbbd27 /src/drivers/nvs
parentsettings_ui() now returns a status code. (diff)
downloadipxe-6ceaa158da9cf2c5c74e791ffada55b7f91c6f97.tar.gz
ipxe-6ceaa158da9cf2c5c74e791ffada55b7f91c6f97.tar.xz
ipxe-6ceaa158da9cf2c5c74e791ffada55b7f91c6f97.zip
Return -EIO when verification fails, instead of -EINVAL.
Diffstat (limited to 'src/drivers/nvs')
-rw-r--r--src/drivers/nvs/nvs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/drivers/nvs/nvs.c b/src/drivers/nvs/nvs.c
index 44b56f65..02a96d9d 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;