mirror of
https://github.com/openharmony/third_party_NuttX.git
synced 2026-07-01 08:17:34 -04:00
!102 romfs_readpage的offset需要以起始的offset为基础-master分支
Merge pull request !102 from LeonChan/pg
This commit is contained in:
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user