Fix wrong free function in arc_hdr_decrypt

Need to use arc_free_data_abd to free abd type buffer.

Reviewed-by: Alexander Motin <mav@FreeBSD.org>
Signed-off-by: Chunwei Chen <tuxoko@gmail.com>
Closes #17079
This commit is contained in:
Chunwei Chen 2025-02-22 10:50:33 -08:00 committed by Ameer Hamza
parent af062c480c
commit e085d66f7a

View File

@ -1882,7 +1882,7 @@ arc_hdr_decrypt(arc_buf_hdr_t *hdr, spa_t *spa, const zbookmark_phys_t *zb)
error: error:
arc_hdr_free_abd(hdr, B_FALSE); arc_hdr_free_abd(hdr, B_FALSE);
if (cabd != NULL) 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); return (ret);
} }