[PATCH 4.9 184/222] mtd: physmap_of: Release resources on error