Return -EIO when verification fails, instead of -EINVAL.
authorMichael Brown <mcb30@etherboot.org>
Wed, 20 Dec 2006 14:11:50 +0000 (14:11 +0000)
committerMichael Brown <mcb30@etherboot.org>
Wed, 20 Dec 2006 14:11:50 +0000 (14:11 +0000)
src/drivers/nvs/nvs.c

index 44b56f6..02a96d9 100644 (file)
@@ -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;