summaryrefslogtreecommitdiffstats
path: root/module/zfs
diff options
context:
space:
mode:
authorwli5 <[email protected]>2018-02-06 02:26:27 +0800
committerBrian Behlendorf <[email protected]>2018-02-05 10:26:27 -0800
commitf6b58faaa618256bf7e2ac690dbfe5d4cfb5e976 (patch)
treec9d5d26c429c43540fd1450bef4143eca7a2c5f3 /module/zfs
parent0d23f5e2e4532718ce26ec8411140759cf2367e2 (diff)
Bug fix in qat_compress.c for vmalloc addr check
Remove the unused vmalloc address check, and function mem_to_page will handle the non-vmalloc address when map it to a physical address. Reviewed-by: Brian Behlendorf <[email protected]> Signed-off-by: Weigang Li <[email protected]> Closes #7125
Diffstat (limited to 'module/zfs')
-rw-r--r--module/zfs/qat_compress.c4
1 files changed, 0 insertions, 4 deletions
diff --git a/module/zfs/qat_compress.c b/module/zfs/qat_compress.c
index 4d17d7ac9..62655f56d 100644
--- a/module/zfs/qat_compress.c
+++ b/module/zfs/qat_compress.c
@@ -364,10 +364,6 @@ qat_compress(qat_compress_dir_t dir, char *src, int src_len,
Cpa32U dst_buffer_list_mem_size = sizeof (CpaBufferList) +
(num_dst_buf * sizeof (CpaFlatBuffer));
- if (!is_vmalloc_addr(src) || !is_vmalloc_addr(src + src_len - 1) ||
- !is_vmalloc_addr(dst) || !is_vmalloc_addr(dst + dst_len - 1))
- return (-1);
-
if (PHYS_CONTIG_ALLOC(&in_pages,
num_src_buf * sizeof (struct page *)) != CPA_STATUS_SUCCESS)
goto fail;