提交 6d3a5250 编写于 作者: L Leon Chan

fix: romfs_readpage的off计算需要以startoffset为基础

close: I4JEZO
Signed-off-by: NLeon Chan <chenwei26@huawei.com>
上级 66002464
......@@ -350,6 +350,7 @@ static ssize_t romfs_readpage(struct Vnode *vnode, char *buffer, off_t off)
buflen = bytesleft;
}
off = rf->rf_startoffset + off;
LOS_CopyFromKernel(buffer, buflen, &rm->rm_buffer[off], buflen);
romfs_semgive(rm);
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册