Files
linux/drivers/mtd
Zhihao Cheng 017c73a34a ubi: Refuse attaching if mtd's erasesize is 0
There exists mtd devices with zero erasesize, which will trigger a
divide-by-zero exception while attaching ubi device.
Fix it by refusing attaching if mtd's erasesize is 0.

Fixes: 801c135ce7 ("UBI: Unsorted Block Images")
Reported-by: Yu Hao <[email protected]>
Link: https://lore.kernel.org/lkml/[email protected]/T/
Signed-off-by: Zhihao Cheng <[email protected]>
Reviewed-by: Miquel Raynal <[email protected]>
Signed-off-by: Richard Weinberger <[email protected]>
2023-09-07 21:59:04 +02:00
..
…
…
2022-09-20 10:40:30 +02:00
2022-09-19 18:14:53 +02:00
…
2023-06-22 23:00:43 +02:00
…