Skip to content

Comparing changes

Choose two branches to see what’s changed or to start a new pull request. If you need to, you can also .

Open a pull request

Create a new pull request by comparing changes across two branches. If you need to, you can also .
...
  • 2 commits
  • 1 file changed
  • 0 commit comments
  • 1 contributor
Showing with 5 additions and 1 deletion.
  1. +5 −1 openiboot/vfl-vsvfl/vsvfl.c
View
6 openiboot/vfl-vsvfl/vsvfl.c
@@ -348,8 +348,12 @@ static error_t vfl_vsvfl_read_single_page(vfl_device_t *_vfl, uint32_t dwVpn, ui
if(!empty_ok && ret == ENOENT)
ret = EIO;
- else if(empty_ok && ret == ENOENT)
+ else if(empty_ok && ret == ENOENT) {
+ if(spare)
+ memset(spare, 0xFF, vfl->geometry.bytes_per_spare);
+
return 1;
+ }
if(ret == EINVAL || ret == EIO)
{

No commit comments for this range

Something went wrong with that request. Please try again.