Skip to content

Commit 212c184

Browse files
tuxokoixhamza
authored andcommitted
Fix wrong free function in arc_hdr_decrypt
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 openzfs#17079
1 parent 2f6d3f4 commit 212c184

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/zfs/arc.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1882,7 +1882,7 @@ arc_hdr_decrypt(arc_buf_hdr_t *hdr, spa_t *spa, const zbookmark_phys_t *zb)
18821882
error:
18831883
arc_hdr_free_abd(hdr, B_FALSE);
18841884
if (cabd != NULL)
1885-
arc_free_data_buf(hdr, cabd, arc_hdr_size(hdr), hdr);
1885+
arc_free_data_abd(hdr, cabd, arc_hdr_size(hdr), hdr);
18861886

18871887
return (ret);
18881888
}

0 commit comments

Comments
 (0)