mirror of
https://github.com/ipxe/ipxe
synced 2026-02-14 02:31:26 +03:00
Return -EIO when verification fails, instead of -EINVAL.
This commit is contained in:
@@ -93,7 +93,7 @@ static int nvs_verify ( struct nvs_device *nvs, unsigned int address,
|
|||||||
if ( memcmp ( data, read_data, len ) != 0 ) {
|
if ( memcmp ( data, read_data, len ) != 0 ) {
|
||||||
DBG ( "NVS %p verification failed at %#04x+%d\n",
|
DBG ( "NVS %p verification failed at %#04x+%d\n",
|
||||||
nvs, address, len );
|
nvs, address, len );
|
||||||
return -EINVAL;
|
return -EIO;
|
||||||
}
|
}
|
||||||
|
|
||||||
return 0;
|
return 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user