From d5505937a66f9efe7d52a90034498a0812db165e Mon Sep 17 00:00:00 2001 From: Chunwei Chen Date: Thu, 20 Feb 2025 20:23:00 -0800 Subject: [PATCH] Fix wrong free function in arc_hdr_decrypt Need to use arc_free_data_abd to free abd type buffer. Signed-off-by: Chunwei Chen --- 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 1f653d953113..46f0582ba21c 100644 --- a/module/zfs/arc.c +++ b/module/zfs/arc.c @@ -1905,7 +1905,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); }