drivers/mtd/bch: fix size_t overflow when offset > 4GB

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
dongjiuzhu1
2024-05-08 19:49:11 +08:00
committed by Xiang Xiao
parent 9d5b9b7c05
commit c978f2fe4c
5 changed files with 6 additions and 6 deletions
+1 -1
View File
@@ -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;