[PATCH openEuler-1.0-LTS] mtd: Fix device name leak when register device failed in add_mtd_device()