[syzbot] [mtd?] divide error in block2mtd_setup2
Jörn Engel
joern at barelysecure.org
Mon Aug 10 09:27:03 PDT 2026
On Sun, Aug 09, 2026 at 07:03:22PM -0700, Jörn Engel wrote:
>
> Best guess would be this:
>
> if ((long)size % erase_size) {
While at it, what purpose does the cast to (long) serve?
As far as I can see, it is useless and should be removed. Fabian, do
you remember why it was necessary?
Jörn
--
The real voyage of discovery consists not in seeking new landscapes,
but in having new eyes.
-- Marcel Proust
More information about the linux-mtd
mailing list