Skip to content

Commit

Permalink
Merge branch 'vv/misc_fixes' into pending
Browse files Browse the repository at this point in the history
  • Loading branch information
stellarhopper committed Jul 22, 2020
2 parents 8a5b27f + 560a1bf commit cd0b5be
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -65,6 +65,7 @@ loaded. To build and install nfit_test.ko:
CONFIG_NVDIMM_PFN=y
CONFIG_NVDIMM_DAX=y
CONFIG_DEV_DAX_PMEM=m
CONFIG_ENCRYPTED_KEYS=y
```

1. Build and install the unit test enabled libnvdimm modules in the
Expand Down
2 changes: 1 addition & 1 deletion ndctl/namespace.c
Original file line number Diff line number Diff line change
Expand Up @@ -1969,7 +1969,7 @@ static int file_write_infoblock(const char *path)

free(buf);
out:
if (fd > 0 && fd != STDOUT_FILENO)
if (fd >= 0 && fd != STDOUT_FILENO)
close(fd);
return rc;
}
Expand Down

0 comments on commit cd0b5be

Please sign in to comment.