Skip to content
Snippets Groups Projects
Commit 0d4086c5 authored by Zhou Guanghui's avatar Zhou Guanghui Committed by Yang Yingliang
Browse files

driver/svm: used tgid when get phys

ascend inclusion
category: bugfix
bugzilla: https://gitee.com/openeuler/kernel/issues/I4EUVI


CVE: NA

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

The user needs the process pid, that is, task tgid.

Signed-off-by: default avatarZhou Guanghui <zhouguanghui1@huawei.com>
Reviewed-by: default avatarWeilong Chen <chenweilong@huawei.com>
Reviewed-by: default avatarDing Tianhong <dingtianhong@huawei.com>
Signed-off-by: default avatarYang Yingliang <yangyingliang@huawei.com>
parent 8e8fdc8c
No related branches found
No related tags found
No related merge requests found
......@@ -348,7 +348,7 @@ static void svm_set_slot_valid(unsigned long index, unsigned long phys)
*((unsigned long *)slot->data) = phys;
slot->image_word = SVM_IMAGE_WORD_VALID;
slot->pid = current->pid;
slot->pid = current->tgid;
slot->data_type = SVM_VA2PA_TYPE_DMA;
__bitmap_set(va2pa_trunk.bitmap, index, 1);
va2pa_trunk.slot_used++;
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment