[added to the 4.1 stable tree] mtd: cfi: enforce valid geometry configuration