]> granicus.if.org Git - zfs/commitdiff
Use NV_ENCODE_NATIVE for nvlist encoding variable
authorTomohiro Kusumi <kusumi.tomohiro@gmail.com>
Fri, 26 Apr 2019 18:24:31 +0000 (03:24 +0900)
committerBrian Behlendorf <behlendorf1@llnl.gov>
Fri, 26 Apr 2019 18:24:31 +0000 (11:24 -0700)
Use NV_ENCODE_NATIVE for nvlist encoding variable instead of 0.

Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
Reviewed-by: Chris Dunlop <chris@onthe.net.au>
Signed-off-by: Tomohiro Kusumi <kusumi.tomohiro@gmail.com>
Closes #8653

module/nvpair/nvpair.c

index 251629225757703589eec4a436f961a28ffba195..5f6423ccce736ee8b017d88c2ccc8bac25bbbbc3 100644 (file)
@@ -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;