Initializer error variable in nvdimm_spa_uio().
Several code paths might result in returning uninitialized value. Reported by: coverity through cem CID: 1396315 Sponsored by: The FreeBSD Foundation
This commit is contained in:
parent
46fa0c2552
commit
90a38351c8
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=339663
@ -157,6 +157,7 @@ nvdimm_spa_uio(struct SPA_mapping *spa, struct uio *uio)
|
||||
vm_memattr_t mattr;
|
||||
int error, n;
|
||||
|
||||
error = 0;
|
||||
if (spa->spa_kva == NULL) {
|
||||
mattr = nvdimm_spa_memattr(spa);
|
||||
vm_page_initfake(&m, 0, mattr);
|
||||
|
Loading…
Reference in New Issue
Block a user