mirror of
https://git.proxmox.com/git/mirror_zfs
synced 2025-04-28 22:12:04 +00:00
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:
parent
af062c480c
commit
e085d66f7a
@ -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);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user