]> git.proxmox.com Git - zfsonlinux.git/blob - zfs-patches/0016-Bug-fix-in-qat_compress.c-for-vmalloc-addr-check.patch
bump ZFS version to 0.7.7-pve2~bpo9
[zfsonlinux.git] / zfs-patches / 0016-Bug-fix-in-qat_compress.c-for-vmalloc-addr-check.patch
1 From 0000000000000000000000000000000000000000 Mon Sep 17 00:00:00 2001
2 From: wli5 <weigang.li@intel.com>
3 Date: Tue, 6 Feb 2018 02:26:27 +0800
4 Subject: [PATCH] Bug fix in qat_compress.c for vmalloc addr check
5 MIME-Version: 1.0
6 Content-Type: text/plain; charset=UTF-8
7 Content-Transfer-Encoding: 8bit
8
9 Remove the unused vmalloc address check, and function mem_to_page
10 will handle the non-vmalloc address when map it to a physical
11 address.
12
13 Reviewed-by: Brian Behlendorf <behlendorf1@llnl.gov>
14 Signed-off-by: Weigang Li <weigang.li@intel.com>
15 Closes #7125
16 (cherry picked from commit 5f38142e7b3a8994afef60faa2e65d72e7993807)
17 Signed-off-by: Fabian Grünbichler <f.gruenbichler@proxmox.com>
18 ---
19 module/zfs/qat_compress.c | 4 ----
20 1 file changed, 4 deletions(-)
21
22 diff --git a/module/zfs/qat_compress.c b/module/zfs/qat_compress.c
23 index 4d17d7ac9..62655f56d 100644
24 --- a/module/zfs/qat_compress.c
25 +++ b/module/zfs/qat_compress.c
26 @@ -364,10 +364,6 @@ qat_compress(qat_compress_dir_t dir, char *src, int src_len,
27 Cpa32U dst_buffer_list_mem_size = sizeof (CpaBufferList) +
28 (num_dst_buf * sizeof (CpaFlatBuffer));
29
30 - if (!is_vmalloc_addr(src) || !is_vmalloc_addr(src + src_len - 1) ||
31 - !is_vmalloc_addr(dst) || !is_vmalloc_addr(dst + dst_len - 1))
32 - return (-1);
33 -
34 if (PHYS_CONTIG_ALLOC(&in_pages,
35 num_src_buf * sizeof (struct page *)) != CPA_STATUS_SUCCESS)
36 goto fail;
37 --
38 2.14.2
39