Re: [syzbot] [mtd?] divide error in block2mtd_setup2
Jörn Engel <[email protected]>
| Newsgroups | gmane.linux.kernel,gmane.linux.drivers.mtd |
|---|---|
| Message-ID | <[email protected]> |
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