Commit ceff4314 authored by yumeng's avatar yumeng Committed by Xie XiuQi
Browse files

uacce: fix the big_memeory reserve



driver inclusion
category:bugfix
bugzilla:NA
CVE:NA

when u reserved a big memory(eg: 4G), (unsigned int)nr_pages is too big,
so "nr_pages << PAGE_SHIFT" overflows, the kernel may alloc the memory
to u, but the vm is wrong.

Feature or Bugfix: Bugfix

Signed-off-by: default avataryumeng <yumeng18@huawei.com>
Reviewed-by: default avatarxuzaibo <xuzaibo@huawei.com>
Reviewed-by: default avatarZhou Wang <wangzhou1@hisilicon.com>
Reviewed-by: default avatarYang Yingliang <yangyingliang@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent ae62bce4
Loading
Loading
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment