Skip to content

Commit

Permalink
Fix wrong free function in arc_hdr_decrypt
Browse files Browse the repository at this point in the history
Need to use arc_free_data_abd to free abd type buffer.

Reviewed-by: Alexander Motin <[email protected]>
Signed-off-by: Chunwei Chen <[email protected]>
Closes #17079
  • Loading branch information
tuxoko authored Feb 22, 2025
1 parent c43df8b commit 682c5f6
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion module/zfs/arc.c
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
Expand Down

0 comments on commit 682c5f6

Please sign in to comment.