ubi: Refuse to attach partitioned mtd devices
When a mtd device has partitions it is wrong to attach the whole device
as this would corrupt the partitions. Refuse to attach it.

Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
1 parent 9a08b99 commit d9e5eb8ec4dfa70d2a3afb1a326da80ae82c06f0
@Sascha Hauer Sascha Hauer authored on 16 Apr 2020
Showing 1 changed file
View
drivers/mtd/ubi/build.c