From e085d66f7ab4ec5f5cee5a16e721db852c8963f2 Mon Sep 17 00:00:00 2001 From: Chunwei Chen Date: Sat, 22 Feb 2025 10:50:33 -0800 Subject: [PATCH] Fix wrong free function in arc_hdr_decrypt Need to use arc_free_data_abd to free abd type buffer. Reviewed-by: Alexander Motin Signed-off-by: Chunwei Chen Closes #17079 --- module/zfs/arc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/module/zfs/arc.c b/module/zfs/arc.c index c6383d03a..119576563 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -1882,7 +1882,7 @@ arc_hdr_decrypt(arc_buf_hdr_t *hdr, spa_t *spa, const zbookmark_phys_t *zb) error: arc_hdr_free_abd(hdr, B_FALSE); if (cabd != NULL) - arc_free_data_buf(hdr, cabd, arc_hdr_size(hdr), hdr); + arc_free_data_abd(hdr, cabd, arc_hdr_size(hdr), hdr); return (ret); }