mtd: physmap_of: fix potential NULL dereference