Skip to content

Commit d550593

Browse files
authored
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 <tuxoko@gmail.com>
1 parent c43df8b commit d550593

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

module/zfs/arc.c

+1-1
Original file line numberDiff line numberDiff line change
@@ -1905,7 +1905,7 @@ arc_hdr_decrypt(arc_buf_hdr_t *hdr, spa_t *spa, const zbookmark_phys_t *zb)
19051905
error:
19061906
arc_hdr_free_abd(hdr, B_FALSE);
19071907
if (cabd != NULL)
1908-
arc_free_data_buf(hdr, cabd, arc_hdr_size(hdr), hdr);
1908+
arc_free_data_abd(hdr, cabd, arc_hdr_size(hdr), hdr);
19091909

19101910
return (ret);
19111911
}

0 commit comments

Comments
 (0)