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:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user