提交 cd2c1e37 编写于 作者: L Leon Chan

feat: page cache backed by vnode instead of filep

close: #I44TBS
Signed-off-by: NLeon Chan <chenwei26@huawei.com>
上级 d94fee58
......@@ -272,8 +272,8 @@ static int TeeCalcTaskSoHash(unsigned char *digest, uint32_t digLen,
if (!LOS_IsRegionFileValid(region)) {
continue;
}
struct file *fileRegion = region->unTypeData.rf.file;
if (fileRegion != NULL && !strncmp(fileRegion->f_path, LIBTEEC_SO, strlen(LIBTEEC_SO))) {
struct Vnode *vnode = region->unTypeData.rf.vnode;
if (vnode != NULL && !strncmp(vnode->filePath, LIBTEEC_SO, strlen(LIBTEEC_SO))) {
TeeSha256Update(&ctx, (void *)region->range.base, region->range.size);
findFlag = 1;
break;
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册