drivers/bch: fix uint32 overflow issue

Signed-off-by: dongjiuzhu1 <dongjiuzhu1@xiaomi.com>
This commit is contained in:
dongjiuzhu1 2024-03-21 16:52:59 +08:00 committed by Xiang Xiao
parent 99df615c9b
commit 5f0230d79f

View file

@ -245,7 +245,7 @@ static off_t bch_seek(FAR struct file *filep, off_t offset, int whence)
break;
case SEEK_END:
newpos = bch->sectsize * bch->nsectors + offset;
newpos = (off_t)bch->sectsize * bch->nsectors + offset;
break;
default: