Commit 87492590 authored by Yang Shen's avatar Yang Shen Committed by JangShui Yang
Browse files

uacce: add error number for the unsupported mremap

driver inclusion
category: feature
bugzilla: https://gitee.com/openeuler/kernel/issues/IB9H0P


CVE: NA

----------------------------------------------------------------------

Since the driver doesn't support the mremap, add an error number to
show users the fail.

Signed-off-by: default avatarYang Shen <shenyang39@huawei.com>
Signed-off-by: default avatarJiangShui Yang <yangjiangshui@h-partners.com>
parent 01f9633b
Loading
Loading
Loading
Loading
+6 −0
Original line number Diff line number Diff line
@@ -392,8 +392,14 @@ static void uacce_vma_close(struct vm_area_struct *vma)
	}
}

static int uacce_vma_mremap(struct vm_area_struct *area)
{
	return -EPERM;
}

static const struct vm_operations_struct uacce_vm_ops = {
	.close = uacce_vma_close,
	.mremap = uacce_vma_mremap,
};

static int get_sort_base(struct uacce_dma_slice *list, int low, int high,