From 43075873f664db76209f1fdf87cb3961a113bfaf Mon Sep 17 00:00:00 2001 From: Mark Johnston Date: Fri, 20 May 2022 10:41:55 +0300 Subject: 14715 libsa: Fix a bug in nvlist creation Reviewed by: Toomas Soome Reviewed by: Andrew Stormont Reviewed by: Yuri Pankov Reviewed by: Gordon Ross Reviewed by: Andy Fiddaman Approved by: Dan McDonald --- usr/src/boot/Makefile.version | 2 +- usr/src/boot/libsa/zfs/nvlist.c | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/usr/src/boot/Makefile.version b/usr/src/boot/Makefile.version index 58f7f184e0..ee48155eb7 100644 --- a/usr/src/boot/Makefile.version +++ b/usr/src/boot/Makefile.version @@ -34,4 +34,4 @@ LOADER_VERSION = 1.1 # Use date like formatting here, YYYY.MM.DD.XX, without leading zeroes. # The version is processed from left to right, the version number can only # be increased. -BOOT_VERSION = $(LOADER_VERSION)-2022.04.21.2 +BOOT_VERSION = $(LOADER_VERSION)-2022.05.27.1 diff --git a/usr/src/boot/libsa/zfs/nvlist.c b/usr/src/boot/libsa/zfs/nvlist.c index 96b0e63736..bf25d4f65d 100644 --- a/usr/src/boot/libsa/zfs/nvlist.c +++ b/usr/src/boot/libsa/zfs/nvlist.c @@ -1209,6 +1209,7 @@ nvlist_add_common(nvlist_t *nvl, const char *name, data_type_t type, nvl->nv_idx += sizeof (*hp); xdr.xdr_buf = nvl->nv_data; + xdr.xdr_buf_size = nvl->nv_asize; xdr.xdr_idx = nvl->nv_idx; xdr.xdr_idx += xdr.xdr_putuint(&xdr, namelen); -- cgit v1.2.3