summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorTomohiro Kusumi <[email protected]>2019-04-27 03:24:31 +0900
committerBrian Behlendorf <[email protected]>2019-04-26 11:24:31 -0700
commitb43a27f76fa2cdad5e9a8e74a6a028e38a415a62 (patch)
treeefb64ded9e99790c38618a0839194639babbfe5d
parent9dfe4b80f0d18d41bc44aa448367aa4ebb63b5db (diff)
Use NV_ENCODE_NATIVE for nvlist encoding variable
Use NV_ENCODE_NATIVE for nvlist encoding variable instead of 0. Reviewed-by: Brian Behlendorf <[email protected]> Reviewed-by: Chris Dunlop <[email protected]> Signed-off-by: Tomohiro Kusumi <[email protected]> Closes #8653
-rw-r--r--module/nvpair/nvpair.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/module/nvpair/nvpair.c b/module/nvpair/nvpair.c
index 251629225..5f6423ccc 100644
--- a/module/nvpair/nvpair.c
+++ b/module/nvpair/nvpair.c
@@ -2714,7 +2714,8 @@ nvlist_xunpack(char *buf, size_t buflen, nvlist_t **nvlp, nv_alloc_t *nva)
if ((err = nvlist_xalloc(&nvl, 0, nva)) != 0)
return (err);
- if ((err = nvlist_common(nvl, buf, &buflen, 0, NVS_OP_DECODE)) != 0)
+ if ((err = nvlist_common(nvl, buf, &buflen, NV_ENCODE_NATIVE,
+ NVS_OP_DECODE)) != 0)
nvlist_free(nvl);
else
*nvlp = nvl;