mirror of
https://github.com/apache/nuttx.git
synced 2026-05-28 03:45:50 +08:00
drivers/mtd/bch: fix size_t overflow when offset > 4GB
Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
@@ -725,7 +725,7 @@ static int mtd_loop_ioctl(FAR struct file *filep, int cmd,
|
||||
*
|
||||
****************************************************************************/
|
||||
|
||||
FAR struct mtd_dev_s *filemtd_initialize(FAR const char *path, size_t offset,
|
||||
FAR struct mtd_dev_s *filemtd_initialize(FAR const char *path, off_t offset,
|
||||
int16_t sectsize, int32_t erasesize)
|
||||
{
|
||||
FAR struct file_dev_s *priv;
|
||||
|
||||
Reference in New Issue
Block a user