From 7e91e1af19bceb66dcddfc8776e281e7a72d685e Mon Sep 17 00:00:00 2001 From: Jorgen Lundman Date: Tue, 20 Jun 2017 09:27:34 +0900 Subject: [PATCH] Correct code in raidz_checksum_error() Illumos code sets up a temp 'buf' for the ereport, crypto changes missed using 'buf' in the call. --- usr/src/uts/common/fs/zfs/vdev_raidz.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/usr/src/uts/common/fs/zfs/vdev_raidz.c b/usr/src/uts/common/fs/zfs/vdev_raidz.c index 659218db2d51..dbad046a7a89 100644 --- a/usr/src/uts/common/fs/zfs/vdev_raidz.c +++ b/usr/src/uts/common/fs/zfs/vdev_raidz.c @@ -2017,7 +2017,7 @@ raidz_checksum_error(zio_t *zio, raidz_col_t *rc, void *bad_data) buf = abd_borrow_buf_copy(rc->rc_abd, rc->rc_size); zfs_ereport_post_checksum(zio->io_spa, vd, &zio->io_bookmark, zio, rc->rc_offset, rc->rc_size, - rc->rc_abd, bad_data, &zbc); + buf, bad_data, &zbc); abd_return_buf(rc->rc_abd, buf, rc->rc_size); } }